diff mbox

Don't ICE with huge alignment (PR middle-end/60226)

Message ID F7FEA818-76FC-4F17-9507-2FDB255AD0F9@comcast.net
State New
Headers show

Commit Message

Mike Stump July 9, 2014, 1:02 a.m. UTC
On Jul 8, 2014, at 3:12 PM, Dominique Dhumieres <dominiq@lps.ens.fr> wrote:
>> diff --git gcc/testsuite/c-c++-common/pr60226.c gcc/testsuite/c-c++-common/pr60226.c
> 
> The test fails on x86_64-apple-darwin13 with
> 
> FAIL: c-c++-common/pr60226.c  -std=gnu++98 (test for excess errors)
> Excess errors:
> /opt/gcc/work/gcc/testsuite/c-c++-common/pr60226.c:6:7: error: alignment of 'foo' is greater than maximum object file alignment 32768

Fixed, thanks.
diff mbox

Patch

Index: pr60226.c
===================================================================
--- pr60226.c	(revision 212379)
+++ pr60226.c	(working copy)
@@ -4,7 +4,7 @@ 
 
 typedef int __attribute__ ((aligned (1 << 28))) int28;
 int28 foo[4] = {}; /* { dg-error "alignment of array elements is greater than element size" } */
-typedef int __attribute__ ((aligned (1 << 29))) int29; /* { dg-error "requested alignment is too large" } */
+typedef int __attribute__ ((aligned (1 << 29))) int29; /* { dg-error "requested alignment is too large|maximum object file alignment" } */
 
 void
 f (void)