From 397fd63d80db207843777b3d5a7099f838ba2894 Mon Sep 17 00:00:00 2001 From: Martin Sebor Date: Fri, 9 Nov 2018 23:15:59 +0000 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/c-c++-common/pr60226.c | 6 +++--- gcc/testsuite/gcc.dg/pr39323-1.c | 6 +++--- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 1046dcb97f6..562c4e2896e 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2018-11-09 Martin Sebor + + PR testsuite/87965 + * c-c++-common/pr60226.c: Adjust text of expected diagnostic. + * gcc.dg/pr39323-1.c: Ditto. + 2018-11-09 Paul Koning * gcc.dg/Walloca-16.c: Ignore conflicting types for built-in diff --git a/gcc/testsuite/c-c++-common/pr60226.c b/gcc/testsuite/c-c++-common/pr60226.c index 42646e41e37..930829bd488 100644 --- a/gcc/testsuite/c-c++-common/pr60226.c +++ b/gcc/testsuite/c-c++-common/pr60226.c @@ -1,15 +1,15 @@ -/* PR c/60226 */ +/* PR c/60226 - ICE initializing array of elements with too large alignment */ /* { dg-do compile } */ /* { dg-options "-Wno-c++-compat" { target c } } */ /* { dg-require-effective-target int32plus } */ 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" } */ -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 f (void) { 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" } */ } diff --git a/gcc/testsuite/gcc.dg/pr39323-1.c b/gcc/testsuite/gcc.dg/pr39323-1.c index 5e3baec4b60..7a7fd63a416 100644 --- a/gcc/testsuite/gcc.dg/pr39323-1.c +++ b/gcc/testsuite/gcc.dg/pr39323-1.c @@ -1,5 +1,5 @@ -/* PR c/39323 */ +/* PR c/39323 - MAX_OFILE_ALIGNMENT in elfos.h is too big */ /* { dg-do compile { target *-*-linux* *-*-gnu* } } */ -int foo __attribute__ ((aligned(1 << 29))) = 20; /* { dg-error "requested alignment is too large" } */ -typedef int __attribute__ ((aligned(1 << 29))) int29; /* { 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" } */ -- 2.30.2