Commit 397fd63d by Martin Sebor Committed by Martin Sebor

re PR testsuite/87965 (Test cases c-c++-common/pr60226.c and gcc.dg/pr39323-1.c…

re PR testsuite/87965 (Test cases c-c++-common/pr60226.c and gcc.dg/pr39323-1.c fail starting with r265977)

gcc/testsuite/ChangeLog:

	PR testsuite/87965
	* c-c++-common/pr60226.c: Adjust text of expected diagnostic.
	* gcc.dg/pr39323-1.c: Ditto.

From-SVN: r265998
parent 1dbff00c
2018-11-09 Martin Sebor <msebor@redhat.com>
PR testsuite/87965
* c-c++-common/pr60226.c: Adjust text of expected diagnostic.
* gcc.dg/pr39323-1.c: Ditto.
2018-11-09 Paul Koning <ni1d@arrl.net> 2018-11-09 Paul Koning <ni1d@arrl.net>
* gcc.dg/Walloca-16.c: Ignore conflicting types for built-in * gcc.dg/Walloca-16.c: Ignore conflicting types for built-in
......
/* PR c/60226 */ /* PR c/60226 - ICE initializing array of elements with too large alignment */
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-Wno-c++-compat" { target c } } */ /* { dg-options "-Wno-c++-compat" { target c } } */
/* { dg-require-effective-target int32plus } */ /* { dg-require-effective-target int32plus } */
typedef int __attribute__ ((aligned (1 << 28))) int28; typedef int __attribute__ ((aligned (1 << 28))) int28;
int28 foo[4] = {}; /* { dg-error "alignment of array elements is greater than element size|maximum object file alignment" } */ int28 foo[4] = {}; /* { dg-error "alignment of array elements is greater than element size|maximum object file alignment" } */
typedef int __attribute__ ((aligned (1 << 29))) int29; /* { dg-error "requested alignment is too large|maximum object file alignment" } */ typedef int __attribute__ ((aligned (1 << 29))) int29; /* { dg-error "requested alignment|maximum object file alignment" } */
void void
f (void) f (void)
{ {
struct { __attribute__((aligned (1 << 28))) double a; } x1; struct { __attribute__((aligned (1 << 28))) double a; } x1;
struct { __attribute__((aligned (1 << 29))) double a; } x2; /* { dg-error "requested alignment is too large" } */ struct { __attribute__((aligned (1 << 29))) double a; } x2; /* { dg-error "requested alignment" } */
} }
/* PR c/39323 */ /* PR c/39323 - MAX_OFILE_ALIGNMENT in elfos.h is too big */
/* { dg-do compile { target *-*-linux* *-*-gnu* } } */ /* { dg-do compile { target *-*-linux* *-*-gnu* } } */
int foo __attribute__ ((aligned(1 << 29))) = 20; /* { dg-error "requested alignment is too large" } */ int foo __attribute__ ((aligned(1 << 29))) = 20; /* { dg-error "requested alignment" } */
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" } */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment