+2016-06-20 Martin Sebor <msebor@redhat.com>
+
+ PR c/69507
+ * gnu89-const-expr-1.c: Avoid diagnosing __alignof__ as not conforming.
+ * gnu90-const-expr-1.c: Same.
+ * gnu99-const-expr-1.c: Same.
+ * gnu99-static-1.c: Same.
+
2016-06-20 Renlin Li <renlin.li@arm.com>
* gcc.dg/tree-ssa/attr-hotcold-2.c: Fix syntax errors.
E5 = __imag__ 0,
/* __alignof__ always constant. */
E6 = __alignof__ (int[n]), /* { dg-error "ISO C90 forbids variable length array" } */
- E7 = __alignof__ (a), /* { dg-error "__alignof__ \\(expression\\)" } */
+ E7 = __alignof__ (a),
/* __extension__ ignored for constant expression purposes. */
E8 = __extension__ (1 ? 0 : i++), /* { dg-error "constant expression" } */
E9 = __extension__ 0,
E5 = __imag__ 0,
/* __alignof__ always constant. */
E6 = __alignof__ (int[n]), /* { dg-error "ISO C90 forbids variable length array" } */
- E7 = __alignof__ (a), /* { dg-error "__alignof__ \\(expression\\)" } */
+ E7 = __alignof__ (a),
/* __extension__ ignored for constant expression purposes. */
E8 = __extension__ (1 ? 0 : i++), /* { dg-error "constant expression" } */
E9 = __extension__ 0,
E5 = __imag__ 0,
/* __alignof__ always constant. */
E6 = __alignof__ (int[n]),
- E7 = __alignof__ (a), /* { dg-error "__alignof__ \\(expression\\)" } */
+ E7 = __alignof__ (a),
/* __extension__ ignored for constant expression purposes. */
E8 = __extension__ (1 ? 0 : i++), /* { dg-error "constant expression" } */
E9 = __extension__ 0,
/* { dg-options "-O2 -std=gnu99 -pedantic-errors" } */
/* __alignof__, OK. */
-static int f0(void);
-void g0(void) { __alignof__(f0()); } /* { dg-error "__alignof__ \\(expression\\)" } */
+static int f0(void);
+void g0(void) { __alignof__(f0()); }
/* __typeof__ not variably modified, OK. */
static int f1(void);