+2002-12-28 John David Anglin <dave.anglin@nrc.ca>
+
+ * pa.h (TARGET_SOM): Define if not defined.
+ * som.h (OBJ_SOM): Rename to TARGET_SOM.
+ * pa.c (pa_output_function_prologue): Don't accumulate the total code
+ bytes in the translation unit when using gas, som and not the portable
+ runtime, or when using function sections.
+
2002-12-21 Eric Botcazou <ebotcazou@libertysurf.fr>
PR optimization/8599
fputs ("\n\t.ENTRY\n", file);
- /* If we're using GAS and not using the portable runtime model, then
- we don't need to accumulate the total number of code bytes. */
- if (TARGET_GAS && ! TARGET_PORTABLE_RUNTIME)
+ /* If we're using GAS, SOM and not the portable runtime model, or if
+ we're using function sections, then we don't need to accumulate the
+ total number of code bytes in the translation unit. */
+ if ((TARGET_GAS && TARGET_SOM && !TARGET_PORTABLE_RUNTIME)
+ || flag_function_sections)
total_code_bytes = 0;
else if (INSN_ADDRESSES_SET_P ())
{
#define TARGET_ELF32 0
#endif
+/* Generate code for SOM ABI. */
+#ifndef TARGET_SOM
+#define TARGET_SOM 0
+#endif
+
/* Macro to define tables used to set the flags.
This is a list in braces of pairs in braces,
each pair being { "NAME", VALUE }
Boston, MA 02111-1307, USA. */
/* So we can conditionalize small amounts of code in pa.c or pa.md. */
-#define OBJ_SOM
+#undef TARGET_SOM
+#define TARGET_SOM 1
/* We do not use BINCL stabs in SOM.
??? If it does not hurt, we probably should to avoid useless divergence