aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/rs6000
diff options
context:
space:
mode:
authorAndrew Pinski <apinski@apple.com>2004-09-12 18:30:32 +0000
committerAndrew Pinski <pinskia@gcc.gnu.org>2004-09-12 11:30:32 -0700
commitc92d8761c7f6814e8ed7734aff920a40240ad43b (patch)
treec7e8aa5eb52ee5ba99426c12cc24a14c3520723d /gcc/config/rs6000
parent8f8ccdf3303348de8f0193502beef1789e423b2d (diff)
downloadgcc-c92d8761c7f6814e8ed7734aff920a40240ad43b.zip
gcc-c92d8761c7f6814e8ed7734aff920a40240ad43b.tar.gz
gcc-c92d8761c7f6814e8ed7734aff920a40240ad43b.tar.bz2
darwin.h (ASM_OUTPUT_COMMON): Make sure we do not have a size of 0.
2004-09-12 Andrew Pinski <apinski@apple.com> * darwin.h (ASM_OUTPUT_COMMON): Make sure we do not have a size of 0. From-SVN: r87401
Diffstat (limited to 'gcc/config/rs6000')
-rw-r--r--gcc/config/rs6000/darwin.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/gcc/config/rs6000/darwin.h b/gcc/config/rs6000/darwin.h
index 44ae79a..e2ef233 100644
--- a/gcc/config/rs6000/darwin.h
+++ b/gcc/config/rs6000/darwin.h
@@ -240,11 +240,14 @@ do { \
symbol. */
/* ? */
#undef ASM_OUTPUT_ALIGNED_COMMON
-#define ASM_OUTPUT_COMMON(FILE, NAME, SIZE, ROUNDED) \
- do { fputs (".comm ", (FILE)); \
- RS6000_OUTPUT_BASENAME ((FILE), (NAME)); \
- fprintf ((FILE), ","HOST_WIDE_INT_PRINT_UNSIGNED"\n",\
- (SIZE)); } while (0)
+#define ASM_OUTPUT_COMMON(FILE, NAME, SIZE, ROUNDED) \
+ do { \
+ unsigned HOST_WIDE_INT size = SIZE; \
+ fputs (".comm ", (FILE)); \
+ RS6000_OUTPUT_BASENAME ((FILE), (NAME)); \
+ if (size == 0) size = 1; \
+ fprintf ((FILE), ","HOST_WIDE_INT_PRINT_UNSIGNED"\n", size); \
+ } while (0)
/* Override the standard rs6000 definition. */