* 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
+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
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__");
case ABI_DARWIN:
builtin_define ("_CALL_DARWIN");
break;
+ default:
+ break;
}
}
}
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,