2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
authorvmakarov <vmakarov@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 1 Apr 2002 22:44:29 +0000 (22:44 +0000)
committervmakarov <vmakarov@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 1 Apr 2002 22:44:29 +0000 (22:44 +0000)
* config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
        ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@51713 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/pa/pa-pro-end.h

index d06f8cf..9bfbc2b 100644 (file)
@@ -1,3 +1,8 @@
+2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
+
+       * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
+        ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
+
 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
 
        * c-decl.c (grokdeclarator): Update.
index 90b7ef5..f909390 100644 (file)
@@ -40,3 +40,26 @@ Boston, MA 02111-1307, USA.  */
    linker script to pull it in.  */
 #undef STARTFILE_SPEC
 #define STARTFILE_SPEC ""
+
+/* The following two macros are identical to the ones in pa.h.  We need
+   to override the macros in elfos.h on the rtems and pro ports.  */
+
+/* This says how to output an assembler line to define a global common symbol
+   with size SIZE (in bytes) and alignment ALIGN (in bits).  */
+
+#undef ASM_OUTPUT_ALIGNED_COMMON
+#define ASM_OUTPUT_ALIGNED_COMMON(FILE, NAME, SIZE, ALIGNED)           \
+{ bss_section ();                                                      \
+  assemble_name ((FILE), (NAME));                                      \
+  fputs ("\t.comm ", (FILE));                                          \
+  fprintf ((FILE), "%d\n", MAX ((SIZE), ((ALIGNED) / BITS_PER_UNIT)));}
+
+/* This says how to output an assembler line to define a local common symbol
+   with size SIZE (in bytes) and alignment ALIGN (in bits).  */
+
+#undef ASM_OUTPUT_ALIGNED_LOCAL
+#define ASM_OUTPUT_ALIGNED_LOCAL(FILE, NAME, SIZE, ALIGNED)            \
+{ bss_section ();                                                      \
+  fprintf ((FILE), "\t.align %d\n", ((ALIGNED) / BITS_PER_UNIT));      \
+  assemble_name ((FILE), (NAME));                                      \
+  fprintf ((FILE), "\n\t.block %d\n", (SIZE));}