rs6000.c (output_mi_thunk): Handle minimal-toc and call correct function on AIX.

* rs6000.c (output_mi_thunk): Handle minimal-toc and call
        correct function on AIX.

From-SVN: r47355
This commit is contained in:
David Edelsohn 2001-11-26 21:43:48 +00:00 committed by David Edelsohn
parent 97e620cf89
commit fa9b5c6be7
2 changed files with 14 additions and 7 deletions

View File

@ -1,3 +1,8 @@
2001-11-26 David Edelsohn <edelsohn@gnu.org>
* rs6000.c (output_mi_thunk): Handle minimal-toc and call
correct function on AIX.
2001-11-26 Alexandre Oliva <aoliva@redhat.com>
* toplev.c (process_options): Don't force

View File

@ -8173,13 +8173,15 @@ output_mi_thunk (file, thunk_fndecl, delta, function)
ASM_OUTPUT_INTERNAL_LABEL (file, "Lthunk", labelno);
labelno++;
/* Note, MINIMAL_TOC doesn't make sense in the case of a
thunk, since there will be only one TOC entry for this
function. */
fputs ("\t.tc\t", file);
assemble_name (file, buf);
fputs ("[TC],", file);
assemble_name (file, buf);
if (TARGET_MINIMAL_TOC)
fputs (TARGET_32BIT ? "\t.long " : DOUBLE_INT_ASM_OP, file);
else
{
fputs ("\t.tc ", file);
assemble_name (file, fname);
fputs ("[TC],", file);
}
assemble_name (file, fname);
putc ('\n', file);
text_section ();
asm_fprintf (file, (TARGET_32BIT) ? "\t{l|lwz} %s," : "\tld %s,", r12);