aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Stump <mrs@gcc.gnu.org>2005-03-25 19:55:58 +0000
committerMike Stump <mrs@gcc.gnu.org>2005-03-25 19:55:58 +0000
commit8c3cc7d9865c1a237eb84979ae86da6740c634da (patch)
tree7205e9b5f1518278557abd7adfb5465730019559
parentda4c340cc57613f5b55a521e6a5fb90689066b82 (diff)
downloadgcc-8c3cc7d9865c1a237eb84979ae86da6740c634da.zip
gcc-8c3cc7d9865c1a237eb84979ae86da6740c634da.tar.gz
gcc-8c3cc7d9865c1a237eb84979ae86da6740c634da.tar.bz2
darwin.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Don't allow 0 sized objects.
* config/darwin.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Don't allow 0 sized objects. From-SVN: r97059
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/darwin.h4
2 files changed, 9 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index e99685a..8be3357 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2005-03-25 Mike Stump <mrs@apple.com>
+
+ * config/darwin.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Don't allow 0
+ sized objects.
+
2005-03-25 Geoffrey Keating <geoffk@apple.com>
* config/rs6000/rs6000.md (UNSPEC constants): Add UNSPEC_STFIWX.
@@ -47,6 +52,7 @@
* emit-rtl.c (reverse_comparison): Remove.
* rtl.h: Remove the corresponding prototype.
+>>>>>>> 2.7995
2005-03-24 James E Wilson <wilson@specifixinc.com>
* doc/install.texi (--enable-altivec): Delete docs.
diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h
index 937b497..b26715e 100644
--- a/gcc/config/darwin.h
+++ b/gcc/config/darwin.h
@@ -585,9 +585,11 @@ extern const char *darwin_fix_and_continue_switch;
#undef ASM_OUTPUT_ALIGNED_DECL_LOCAL
#define ASM_OUTPUT_ALIGNED_DECL_LOCAL(FILE, DECL, NAME, SIZE, ALIGN) \
do { \
+ unsigned HOST_WIDE_INT _new_size = SIZE; \
fputs (".lcomm ", (FILE)); \
assemble_name ((FILE), (NAME)); \
- fprintf ((FILE), ","HOST_WIDE_INT_PRINT_UNSIGNED",%u\n", (SIZE), \
+ if (_new_size == 0) _new_size = 1; \
+ fprintf ((FILE), ","HOST_WIDE_INT_PRINT_UNSIGNED",%u\n", _new_size, \
floor_log2 ((ALIGN) / BITS_PER_UNIT)); \
if ((DECL) && ((TREE_STATIC (DECL) \
&& (!DECL_COMMON (DECL) || !TREE_PUBLIC (DECL))) \