diff mbox

Implement C1X _Alignas, _Alignof, max_align_t, stdalign.h

Message ID 201111072202.48950.ebotcazou@adacore.com
State New
Headers show

Commit Message

Eric Botcazou Nov. 7, 2011, 9:02 p.m. UTC
> 2011-11-06  Joseph Myers  <joseph@codesourcery.com>
>
> 	* g++.dg/cpp0x/alignof3.C, gcc.dg/c1x-align-1.c,
> 	gcc.dg/c1x-align-2.c, gcc.dg/c1x-align-3.c, gcc.dg/c1x-align-4.c,
> 	gcc.dg/c90-align-1.c, gcc.dg/c99-align-1.c: New tests.
> 	* gcc.dg/gnu89-const-expr-1.c, gcc.dg/gnu90-const-expr-1.c,
> 	gcc.dg/gnu99-const-expr-1.c, gcc.dg/gnu99-static-1.c: Update
> 	expected diagnostics.

We also need this adjustment on Solaris, otherwise compilation now stops.

Tested on Solaris 8, applied on the mainline as obvious.


2011-11-07  Eric Botcazou  <ebotcazou@adacore.com>

	* gcc.dg/pragma-align-2.c: Compile with -std=gnu99.
diff mbox

Patch

Index: gcc.dg/pragma-align-2.c
===================================================================
--- gcc.dg/pragma-align-2.c	(revision 181079)
+++ gcc.dg/pragma-align-2.c	(working copy)
@@ -1,4 +1,5 @@ 
 /* { dg-do run { target *-*-solaris2.* } } */
+/* { dg-options "-std=gnu99" } */
 
 void abort (void);