summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>1994-01-24 22:40:31 +0000
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>1994-01-24 22:40:31 +0000
commita3f9e1203dbb88cfd4e1ce3ecf74879fc90fbcd5 (patch)
treebba54112202f5c4163c4d966bcf19384fe478ada /gcc
parent6d7ad5dc5e22c8863099c4c65b7bf4b610697712 (diff)
downloadgcc-a3f9e1203dbb88cfd4e1ce3ecf74879fc90fbcd5.tar.gz
(ASM_OUTPUT_COMMON): Don't output .global. Use SIZE not ROUNDED.
(ASM_OUTPUT_LOCAL): Delete. (ASM_OUTPUT_ALIGNED_LOCAL): Define. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@6421 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-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 41dcdfddb2a..bf7f25d2993 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.