Commit 468e8dba by David Edelsohn

more minimal-toc tweaking of output_mi_thunk.

From-SVN: r47367
parent 5652450c
...@@ -8184,9 +8184,15 @@ output_mi_thunk (file, thunk_fndecl, delta, function) ...@@ -8184,9 +8184,15 @@ output_mi_thunk (file, thunk_fndecl, delta, function)
assemble_name (file, fname); assemble_name (file, fname);
putc ('\n', file); putc ('\n', file);
text_section (); text_section ();
if (TARGET_MINIMAL_TOC)
asm_fprintf (file, (TARGET_32BIT)
? "\t{l|lwz} %s,%s(%s)\n" : "\tld %s,%s(%s)\n", r12,
TARGET_ELF ? ".LCTOC0@toc" : ".LCTOC..1", toc);
asm_fprintf (file, (TARGET_32BIT) ? "\t{l|lwz} %s," : "\tld %s,", r12); asm_fprintf (file, (TARGET_32BIT) ? "\t{l|lwz} %s," : "\tld %s,", r12);
assemble_name (file, buf); assemble_name (file, buf);
asm_fprintf (file, "(%s)\n", reg_names[2]); if (TARGET_ELF && TARGET_MINIMAL_TOC)
fputs ("-(.LCTOC1)", file);
asm_fprintf (file, "(%s)\n", TARGET_MINIMAL_TOC ? r12 : toc);
asm_fprintf (file, asm_fprintf (file,
(TARGET_32BIT) ? "\t{l|lwz} %s,0(%s)\n" : "\tld %s,0(%s)\n", (TARGET_32BIT) ? "\t{l|lwz} %s,0(%s)\n" : "\tld %s,0(%s)\n",
r0, r12); r0, 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