mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-31 02:14:49 +08:00
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:
parent
97e620cf89
commit
fa9b5c6be7
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user