Commit fa9b5c6b by David Edelsohn Committed by David Edelsohn

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
parent 97e620cf
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> 2001-11-26 Alexandre Oliva <aoliva@redhat.com>
* toplev.c (process_options): Don't force * toplev.c (process_options): Don't force
......
...@@ -8173,13 +8173,15 @@ output_mi_thunk (file, thunk_fndecl, delta, function) ...@@ -8173,13 +8173,15 @@ output_mi_thunk (file, thunk_fndecl, delta, function)
ASM_OUTPUT_INTERNAL_LABEL (file, "Lthunk", labelno); ASM_OUTPUT_INTERNAL_LABEL (file, "Lthunk", labelno);
labelno++; labelno++;
/* Note, MINIMAL_TOC doesn't make sense in the case of a if (TARGET_MINIMAL_TOC)
thunk, since there will be only one TOC entry for this fputs (TARGET_32BIT ? "\t.long " : DOUBLE_INT_ASM_OP, file);
function. */ else
fputs ("\t.tc\t", file); {
assemble_name (file, buf); fputs ("\t.tc ", file);
fputs ("[TC],", file); assemble_name (file, fname);
assemble_name (file, buf); fputs ("[TC],", file);
}
assemble_name (file, fname);
putc ('\n', file); putc ('\n', file);
text_section (); text_section ();
asm_fprintf (file, (TARGET_32BIT) ? "\t{l|lwz} %s," : "\tld %s,", r12); asm_fprintf (file, (TARGET_32BIT) ? "\t{l|lwz} %s," : "\tld %s,", r12);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment