aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Wilson <wilson@gcc.gnu.org>1994-01-24 14:40:31 -0800
committerJim Wilson <wilson@gcc.gnu.org>1994-01-24 14:40:31 -0800
commitb277ceaf608945a734c08f73572656d8fd8c1d7a (patch)
treebba54112202f5c4163c4d966bcf19384fe478ada
parent2d55b7e858f80b060043c0c7a1da2f5a9c7721ca (diff)
downloadgcc-b277ceaf608945a734c08f73572656d8fd8c1d7a.zip
gcc-b277ceaf608945a734c08f73572656d8fd8c1d7a.tar.gz
gcc-b277ceaf608945a734c08f73572656d8fd8c1d7a.tar.bz2
(ASM_OUTPUT_COMMON): Don't output .global. Use SIZE not ROUNDED.
(ASM_OUTPUT_LOCAL): Delete. (ASM_OUTPUT_ALIGNED_LOCAL): Define. From-SVN: r6421
-rw-r--r--gcc/config/sparc/sparc.h19
1 files changed, 9 insertions, 10 deletions
diff --git a/gcc/config/sparc/sparc.h b/gcc/config/sparc/sparc.h
index 41dcdfd..bf7f25d 100644
--- a/gcc/config/sparc/sparc.h
+++ b/gcc/config/sparc/sparc.h
@@ -1738,19 +1738,18 @@ do { \
to define a global common symbol. */
#define ASM_OUTPUT_COMMON(FILE, NAME, SIZE, ROUNDED) \
-( fputs ("\t.global ", (FILE)), \
+( fputs ("\t.common ", (FILE)), \
assemble_name ((FILE), (NAME)), \
- fputs ("\n\t.common ", (FILE)), \
- assemble_name ((FILE), (NAME)), \
- fprintf ((FILE), ",%u,\"bss\"\n", (ROUNDED)))
+ fprintf ((FILE), ",%u,\"bss\"\n", (SIZE)))
-/* This says how to output an assembler line
- to define a local common symbol. */
+/* This says how to output an assembler line to define a local common
+ symbol. */
-#define ASM_OUTPUT_LOCAL(FILE, NAME, SIZE, ROUNDED) \
-( fputs ("\n\t.reserve ", (FILE)), \
- assemble_name ((FILE), (NAME)), \
- fprintf ((FILE), ",%u,\"bss\"\n", (ROUNDED)))
+#define ASM_OUTPUT_ALIGNED_LOCAL(FILE, NAME, SIZE, ALIGNED) \
+( fputs ("\t.reserve ", (FILE)), \
+ assemble_name ((FILE), (NAME)), \
+ fprintf ((FILE), ",%u,\"bss\",%u\n", \
+ (SIZE), ((ALIGNED) / BITS_PER_UNIT)))
/* Store in OUTPUT a string (made with alloca) containing
an assembler-name for a local static variable named NAME.