]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
pa.h (TARGET_SOM): Define if not defined.
authorJohn David Anglin <dave.anglin@nrc.ca>
Sat, 28 Dec 2002 23:27:08 +0000 (23:27 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Sat, 28 Dec 2002 23:27:08 +0000 (23:27 +0000)
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.

From-SVN: r60589

gcc/ChangeLog
gcc/config/pa/pa.c
gcc/config/pa/pa.h
gcc/config/pa/som.h

index fd31004539e26672763e207504c6c93bcfa9e3d6..d7198bef607ae9dac563f61f4895731e6c7b6ed9 100644 (file)
@@ -1,3 +1,11 @@
+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
index c543c950c4ae96634dde8e2e6351f70eb8c52ee9..533cdd48e89aa34530328ecec316e4fd493a6529 100644 (file)
@@ -3078,9 +3078,11 @@ pa_output_function_prologue (file, size)
 
   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 ())
     {
index 5c27467e25ae767cf353b45ee8e16aa54a247470..72b56d8cb8586b38d3f00a5086f010f985c301d1 100644 (file)
@@ -159,6 +159,11 @@ extern int target_flags;
 #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 }
index 22c46538f66da7a7fa61e41d1d2e12352e1bfce8..f20a5a8d04e75b890f5bb5f3b8360e1ab4623a41 100644 (file)
@@ -19,7 +19,8 @@ the Free Software Foundation, 59 Temple Place - Suite 330,
 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