aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Merrill <merrill@gnu.org>1997-07-16 19:05:27 +0000
committerJason Merrill <merrill@gnu.org>1997-07-16 19:05:27 +0000
commit101d9529d47a47bbe86d0456eac0d103fbf1bdfc (patch)
tree8e43979a045a853b2016987ab812143bb43519bc
parentd3c4e2ab206ada2c4b9a3ccbf680c4e6e8cda113 (diff)
downloadgcc-101d9529d47a47bbe86d0456eac0d103fbf1bdfc.zip
gcc-101d9529d47a47bbe86d0456eac0d103fbf1bdfc.tar.gz
gcc-101d9529d47a47bbe86d0456eac0d103fbf1bdfc.tar.bz2
x
From-SVN: r14464
-rw-r--r--gcc/config/sparc/sparc.h13
-rw-r--r--gcc/config/sparc/sysv4.h1
2 files changed, 14 insertions, 0 deletions
diff --git a/gcc/config/sparc/sparc.h b/gcc/config/sparc/sparc.h
index c787e60..ac86c3a 100644
--- a/gcc/config/sparc/sparc.h
+++ b/gcc/config/sparc/sparc.h
@@ -2962,6 +2962,19 @@ do { \
fprintf ((FILE), ",%u,\"bss\",%u\n", \
(SIZE), ((ALIGNED) / BITS_PER_UNIT)))
+/* A C statement (sans semicolon) to output to the stdio stream
+ FILE the assembler definition of uninitialized global DECL named
+ NAME whose size is SIZE bytes and alignment is ALIGN bytes.
+ Try to use asm_output_aligned_bss to implement this macro. */
+
+#define ASM_OUTPUT_ALIGNED_BSS(FILE, DECL, NAME, SIZE, ALIGN) \
+ do { \
+ fputs (".globl ", (FILE)); \
+ assemble_name ((FILE), (NAME)); \
+ fputs ("\n", (FILE)); \
+ ASM_OUTPUT_ALIGNED_LOCAL (FILE, NAME, SIZE, ALIGN); \
+ } while (0)
+
/* Store in OUTPUT a string (made with alloca) containing
an assembler-name for a local static variable named NAME.
LABELNO is an integer which is different for each call. */
diff --git a/gcc/config/sparc/sysv4.h b/gcc/config/sparc/sysv4.h
index 96e49f9..38ddd48 100644
--- a/gcc/config/sparc/sysv4.h
+++ b/gcc/config/sparc/sysv4.h
@@ -270,5 +270,6 @@ do { long value[4]; \
NAME whose size is SIZE bytes and alignment is ALIGN bytes.
Try to use asm_output_aligned_bss to implement this macro. */
+#undef ASM_OUTPUT_ALIGNED_BSS
#define ASM_OUTPUT_ALIGNED_BSS(FILE, DECL, NAME, SIZE, ALIGN) \
asm_output_aligned_bss (FILE, DECL, NAME, SIZE, ALIGN)