This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Don't ICE with huge alignment (PR middle-end/60226)
- From: Mike Stump <mikestump at comcast dot net>
- To: Dominique Dhumieres <dominiq at lps dot ens dot fr>
- Cc: gcc-patches at gcc dot gnu dot org, polacek at redhat dot com
- Date: Tue, 8 Jul 2014 18:02:26 -0700
- Subject: Re: [PATCH] Don't ICE with huge alignment (PR middle-end/60226)
- Authentication-results: sourceware.org; auth=none
- References: <20140708221258 dot 5A38A105 at mailhost dot lps dot ens dot fr>
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.
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)