Commit b4d330e1 by David Edelsohn Committed by David Edelsohn

rs6000.c (output_mi_thunk): Return to function section on TARGET_ELF.

        * rs6000.c (output_mi_thunk): Return to function section on
        TARGET_ELF.

        * rs6000-c.c (rs6000_cpu_cpp_builtins): Define __PPC405__ if PPC405.

From-SVN: r56348
parent e8fe46d4
2002-08-15 David Edelsohn <edelsohn@gnu.org>
* rs6000.c (output_mi_thunk): Return to function section on
TARGET_ELF.
* rs6000-c.c (rs6000_cpu_cpp_builtins): Define __PPC405__ if PPC405.
2002-08-15 Ulrich Weigand <uweigand@de.ibm.com>
* config/s390/s390.c (legitimize_address): Optimize loading
......
......@@ -97,6 +97,9 @@ rs6000_cpu_cpp_builtins (pfile)
builtin_define ("__SPE__");
if (TARGET_SOFT_FLOAT)
builtin_define ("_SOFT_FLOAT");
/* Used by lwarx/stwcx. errata work-around. */
if (rs6000_cpu == PROCESSOR_PPC405)
builtin_define ("__PPC405__");
if (BYTES_BIG_ENDIAN)
{
builtin_define ("__BIG_ENDIAN__");
......@@ -127,5 +130,7 @@ rs6000_cpu_cpp_builtins (pfile)
case ABI_DARWIN:
builtin_define ("_CALL_DARWIN");
break;
default:
break;
}
}
......@@ -11335,7 +11335,10 @@ output_mi_thunk (file, thunk_fndecl, delta, function)
}
assemble_name (file, fname);
putc ('\n', file);
text_section ();
if (TARGET_ELF)
function_section (current_function_decl);
else
text_section();
if (TARGET_MINIMAL_TOC)
asm_fprintf (file, (TARGET_32BIT)
? "\t{l|lwz} %s,%s(%s)\n" : "\tld %s,%s(%s)\n", 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