From: mrs Date: Tue, 22 Oct 2013 16:36:22 +0000 (+0000) Subject: c1x --> c11. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f52aa3aaa46974986627d55b8c96ad496e64c571;p=thirdparty%2Fgcc.git c1x --> c11. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@203927 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/testsuite/gcc.dg/c1x-align-1.c b/gcc/testsuite/gcc.dg/c1x-align-1.c index 9fe5757bed0a..e0058c380076 100644 --- a/gcc/testsuite/gcc.dg/c1x-align-1.c +++ b/gcc/testsuite/gcc.dg/c1x-align-1.c @@ -1,6 +1,6 @@ -/* Test C1X alignment support. Test valid code. */ +/* Test C11 alignment support. Test valid code. */ /* { dg-do compile } */ -/* { dg-options "-std=c1x -pedantic-errors" } */ +/* { dg-options "-std=c11 -pedantic-errors" } */ #include diff --git a/gcc/testsuite/gcc.dg/c1x-align-2.c b/gcc/testsuite/gcc.dg/c1x-align-2.c index 19f7dd672140..a1750ac547a1 100644 --- a/gcc/testsuite/gcc.dg/c1x-align-2.c +++ b/gcc/testsuite/gcc.dg/c1x-align-2.c @@ -1,6 +1,6 @@ -/* Test C1X alignment support. Test valid code using stdalign.h. */ +/* Test C11 alignment support. Test valid code using stdalign.h. */ /* { dg-do run } */ -/* { dg-options "-std=c1x -pedantic-errors" } */ +/* { dg-options "-std=c11 -pedantic-errors" } */ #include #include diff --git a/gcc/testsuite/gcc.dg/c1x-align-3.c b/gcc/testsuite/gcc.dg/c1x-align-3.c index b97351cdeaf9..39b81ef6f575 100644 --- a/gcc/testsuite/gcc.dg/c1x-align-3.c +++ b/gcc/testsuite/gcc.dg/c1x-align-3.c @@ -1,6 +1,6 @@ -/* Test C1X alignment support. Test invalid code. */ +/* Test C11 alignment support. Test invalid code. */ /* { dg-do compile } */ -/* { dg-options "-std=c1x -pedantic-errors" } */ +/* { dg-options "-std=c11 -pedantic-errors" } */ int a = _Alignof (void (void)); /* { dg-error "function" } */ struct s; diff --git a/gcc/testsuite/gcc.dg/c1x-align-4.c b/gcc/testsuite/gcc.dg/c1x-align-4.c index cc13f93d9c05..6377db6edf31 100644 --- a/gcc/testsuite/gcc.dg/c1x-align-4.c +++ b/gcc/testsuite/gcc.dg/c1x-align-4.c @@ -1,7 +1,7 @@ -/* Test C1X alignment support. Test reducing alignment (assumes there +/* Test C11 alignment support. Test reducing alignment (assumes there are at least some alignment constraints). */ /* { dg-do compile } */ -/* { dg-options "-std=c1x -pedantic-errors" } */ +/* { dg-options "-std=c11 -pedantic-errors" } */ /* { dg-skip-if "no alignment constraints" { "avr-*-*" } { "*" } { "" } } */ #include diff --git a/gcc/testsuite/gcc.dg/c1x-align-5.c b/gcc/testsuite/gcc.dg/c1x-align-5.c index 614edcf6f9b2..c8e475120f85 100644 --- a/gcc/testsuite/gcc.dg/c1x-align-5.c +++ b/gcc/testsuite/gcc.dg/c1x-align-5.c @@ -1,6 +1,6 @@ -/* Test C1X alignment support. Test invalid code. */ +/* Test C11 alignment support. Test invalid code. */ /* { dg-do compile } */ -/* { dg-options "-std=c1x -pedantic-errors" } */ +/* { dg-options "-std=c11 -pedantic-errors" } */ void foo (int []); void bar1 (int [_Alignas (double) 10]); /* { dg-error "expected expression before" } */ diff --git a/gcc/testsuite/gcc.dg/c1x-anon-struct-1.c b/gcc/testsuite/gcc.dg/c1x-anon-struct-1.c index 6d4b433d733b..779ae66b7e1c 100644 --- a/gcc/testsuite/gcc.dg/c1x-anon-struct-1.c +++ b/gcc/testsuite/gcc.dg/c1x-anon-struct-1.c @@ -1,6 +1,6 @@ -/* Test for anonymous structures and unions in C1X. */ +/* Test for anonymous structures and unions in C11. */ /* { dg-do compile } */ -/* { dg-options "-std=c1x -pedantic-errors" } */ +/* { dg-options "-std=c11 -pedantic-errors" } */ #include diff --git a/gcc/testsuite/gcc.dg/c1x-anon-struct-2.c b/gcc/testsuite/gcc.dg/c1x-anon-struct-2.c index cb8043117d5d..d954b4b12703 100644 --- a/gcc/testsuite/gcc.dg/c1x-anon-struct-2.c +++ b/gcc/testsuite/gcc.dg/c1x-anon-struct-2.c @@ -1,7 +1,7 @@ -/* Test for anonymous structures and unions in C1X. Test for invalid +/* Test for anonymous structures and unions in C11. Test for invalid cases. */ /* { dg-do compile } */ -/* { dg-options "-std=c1x -pedantic-errors" } */ +/* { dg-options "-std=c11 -pedantic-errors" } */ typedef struct s0 { diff --git a/gcc/testsuite/gcc.dg/c1x-anon-struct-3.c b/gcc/testsuite/gcc.dg/c1x-anon-struct-3.c index 1841eddd0a18..05cc3660cb8b 100644 --- a/gcc/testsuite/gcc.dg/c1x-anon-struct-3.c +++ b/gcc/testsuite/gcc.dg/c1x-anon-struct-3.c @@ -1,7 +1,7 @@ -/* Test for anonymous structures and unions in C1X. Test for invalid +/* Test for anonymous structures and unions in C11. Test for invalid cases: typedefs disallowed by N1549. */ /* { dg-do compile } */ -/* { dg-options "-std=c1x -pedantic-errors" } */ +/* { dg-options "-std=c11 -pedantic-errors" } */ typedef struct { diff --git a/gcc/testsuite/gcc.dg/c1x-float-1.c b/gcc/testsuite/gcc.dg/c1x-float-1.c index 75233ac82277..376c44d3e781 100644 --- a/gcc/testsuite/gcc.dg/c1x-float-1.c +++ b/gcc/testsuite/gcc.dg/c1x-float-1.c @@ -1,9 +1,9 @@ -/* Test for C1X macros. */ +/* Test for C11 macros. */ /* Origin: Joseph Myers */ /* { dg-do preprocess } */ -/* { dg-options "-std=c1x -pedantic-errors" } */ +/* { dg-options "-std=c11 -pedantic-errors" } */ -/* This test checks that the C1X macros are defined; +/* This test checks that the C11 macros are defined; it does not check the correctness of their values. */ #include diff --git a/gcc/testsuite/gcc.dg/c1x-noreturn-1.c b/gcc/testsuite/gcc.dg/c1x-noreturn-1.c index d9c141d53261..e92c5ae0456c 100644 --- a/gcc/testsuite/gcc.dg/c1x-noreturn-1.c +++ b/gcc/testsuite/gcc.dg/c1x-noreturn-1.c @@ -1,6 +1,6 @@ -/* Test C1X _Noreturn. Test valid code. */ +/* Test C11 _Noreturn. Test valid code. */ /* { dg-do compile } */ -/* { dg-options "-std=c1x -pedantic-errors" } */ +/* { dg-options "-std=c11 -pedantic-errors" } */ _Noreturn void exit (int); diff --git a/gcc/testsuite/gcc.dg/c1x-noreturn-2.c b/gcc/testsuite/gcc.dg/c1x-noreturn-2.c index 81972f1e8bef..951d028f7ae7 100644 --- a/gcc/testsuite/gcc.dg/c1x-noreturn-2.c +++ b/gcc/testsuite/gcc.dg/c1x-noreturn-2.c @@ -1,6 +1,6 @@ -/* Test C1X _Noreturn. Test valid code using stdnoreturn.h. */ +/* Test C11 _Noreturn. Test valid code using stdnoreturn.h. */ /* { dg-do run } */ -/* { dg-options "-std=c1x -pedantic-errors" } */ +/* { dg-options "-std=c11 -pedantic-errors" } */ #include diff --git a/gcc/testsuite/gcc.dg/c1x-noreturn-3.c b/gcc/testsuite/gcc.dg/c1x-noreturn-3.c index b12c23efafc3..168d012a3f00 100644 --- a/gcc/testsuite/gcc.dg/c1x-noreturn-3.c +++ b/gcc/testsuite/gcc.dg/c1x-noreturn-3.c @@ -1,6 +1,6 @@ -/* Test C1X _Noreturn. Test _Noreturn on main, hosted. */ +/* Test C11 _Noreturn. Test _Noreturn on main, hosted. */ /* { dg-do compile } */ -/* { dg-options "-std=c1x -pedantic-errors -fhosted" } */ +/* { dg-options "-std=c11 -pedantic-errors -fhosted" } */ _Noreturn void exit (int); diff --git a/gcc/testsuite/gcc.dg/c1x-noreturn-4.c b/gcc/testsuite/gcc.dg/c1x-noreturn-4.c index 72dceafba192..a92a1140f676 100644 --- a/gcc/testsuite/gcc.dg/c1x-noreturn-4.c +++ b/gcc/testsuite/gcc.dg/c1x-noreturn-4.c @@ -1,6 +1,6 @@ -/* Test C1X _Noreturn. Test _Noreturn on main, freestanding. */ +/* Test C11 _Noreturn. Test _Noreturn on main, freestanding. */ /* { dg-do compile } */ -/* { dg-options "-std=c1x -pedantic-errors -ffreestanding" } */ +/* { dg-options "-std=c11 -pedantic-errors -ffreestanding" } */ _Noreturn void exit (int); diff --git a/gcc/testsuite/gcc.dg/c1x-noreturn-5.c b/gcc/testsuite/gcc.dg/c1x-noreturn-5.c index 73f22165cb05..d1c0949f32ba 100644 --- a/gcc/testsuite/gcc.dg/c1x-noreturn-5.c +++ b/gcc/testsuite/gcc.dg/c1x-noreturn-5.c @@ -1,6 +1,6 @@ -/* Test C1X _Noreturn. Test invalid uses. */ +/* Test C11 _Noreturn. Test invalid uses. */ /* { dg-do compile } */ -/* { dg-options "-std=c1x -pedantic-errors" } */ +/* { dg-options "-std=c11 -pedantic-errors" } */ _Noreturn struct s; /* { dg-error "empty declaration" } */ diff --git a/gcc/testsuite/gcc.dg/c1x-pointer-float-1.c b/gcc/testsuite/gcc.dg/c1x-pointer-float-1.c index 57c5be887364..8c2416587777 100644 --- a/gcc/testsuite/gcc.dg/c1x-pointer-float-1.c +++ b/gcc/testsuite/gcc.dg/c1x-pointer-float-1.c @@ -1,6 +1,6 @@ -/* Test C1X constraint against pointer / floating-point casts. */ +/* Test C11 constraint against pointer / floating-point casts. */ /* { dg-do compile } */ -/* { dg-options "-std=c1x -pedantic-errors" } */ +/* { dg-options "-std=c11 -pedantic-errors" } */ void *p; float f; diff --git a/gcc/testsuite/gcc.dg/c1x-static-assert-1.c b/gcc/testsuite/gcc.dg/c1x-static-assert-1.c index bf7aa5945117..9209a7a4076d 100644 --- a/gcc/testsuite/gcc.dg/c1x-static-assert-1.c +++ b/gcc/testsuite/gcc.dg/c1x-static-assert-1.c @@ -1,6 +1,6 @@ -/* Test C1X static assertions. Valid assertions. */ +/* Test C11 static assertions. Valid assertions. */ /* { dg-do compile } */ -/* { dg-options "-std=c1x -pedantic-errors" } */ +/* { dg-options "-std=c11 -pedantic-errors" } */ _Static_assert (1, "foo"); diff --git a/gcc/testsuite/gcc.dg/c1x-static-assert-2.c b/gcc/testsuite/gcc.dg/c1x-static-assert-2.c index 9a48ca7e8611..de2f573cb8c9 100644 --- a/gcc/testsuite/gcc.dg/c1x-static-assert-2.c +++ b/gcc/testsuite/gcc.dg/c1x-static-assert-2.c @@ -1,6 +1,6 @@ -/* Test C1X static assertions. Failed assertions. */ +/* Test C11 static assertions. Failed assertions. */ /* { dg-do compile } */ -/* { dg-options "-std=c1x -pedantic-errors" } */ +/* { dg-options "-std=c11 -pedantic-errors" } */ _Static_assert (0, "assert1"); /* { dg-error "static assertion failed: \"assert1\"" } */ diff --git a/gcc/testsuite/gcc.dg/c1x-static-assert-3.c b/gcc/testsuite/gcc.dg/c1x-static-assert-3.c index 81b504e2ab1e..79448a533e53 100644 --- a/gcc/testsuite/gcc.dg/c1x-static-assert-3.c +++ b/gcc/testsuite/gcc.dg/c1x-static-assert-3.c @@ -1,6 +1,6 @@ -/* Test C1X static assertions. Invalid assertions. */ +/* Test C11 static assertions. Invalid assertions. */ /* { dg-do compile } */ -/* { dg-options "-std=c1x -pedantic-errors" } */ +/* { dg-options "-std=c11 -pedantic-errors" } */ _Static_assert (__INT_MAX__ * 2, "overflow"); /* { dg-warning "integer overflow in expression" } */ /* { dg-error "overflow in constant expression" "error" { target *-*-* } 5 } */ diff --git a/gcc/testsuite/gcc.dg/c1x-static-assert-4.c b/gcc/testsuite/gcc.dg/c1x-static-assert-4.c index ebc95f5f906d..ddab440ff48c 100644 --- a/gcc/testsuite/gcc.dg/c1x-static-assert-4.c +++ b/gcc/testsuite/gcc.dg/c1x-static-assert-4.c @@ -1,6 +1,6 @@ -/* Test C1X static assertions. More invalid assertions. */ +/* Test C11 static assertions. More invalid assertions. */ /* { dg-do compile } */ -/* { dg-options "-std=c1x -pedantic-errors" } */ +/* { dg-options "-std=c11 -pedantic-errors" } */ /* Static assertions not valid in old-style parameter declarations because declarations there must have declarators. */ diff --git a/gcc/testsuite/gcc.dg/c1x-static-assert-5.c b/gcc/testsuite/gcc.dg/c1x-static-assert-5.c index d4d0821f0e30..e88b8167a198 100644 --- a/gcc/testsuite/gcc.dg/c1x-static-assert-5.c +++ b/gcc/testsuite/gcc.dg/c1x-static-assert-5.c @@ -1,5 +1,5 @@ -/* Test C1X static assertions. Non-constant-expression without -pedantic. */ +/* Test C11 static assertions. Non-constant-expression without -pedantic. */ /* { dg-do compile } */ -/* { dg-options "-std=c1x" } */ +/* { dg-options "-std=c11" } */ _Static_assert ((int)(1.0 + 1.0), "non-constant-expression"); diff --git a/gcc/testsuite/gcc.dg/c1x-static-assert-6.c b/gcc/testsuite/gcc.dg/c1x-static-assert-6.c index c544cadc2681..ac7e14114dbe 100644 --- a/gcc/testsuite/gcc.dg/c1x-static-assert-6.c +++ b/gcc/testsuite/gcc.dg/c1x-static-assert-6.c @@ -1,5 +1,5 @@ -/* Test C1X static assertions. Non-constant-expression with -pedantic. */ +/* Test C11 static assertions. Non-constant-expression with -pedantic. */ /* { dg-do compile } */ -/* { dg-options "-std=c1x -pedantic" } */ +/* { dg-options "-std=c11 -pedantic" } */ _Static_assert ((int)(1.0 + 1.0), "non-constant-expression"); /* { dg-warning "not an integer constant expression" } */ diff --git a/gcc/testsuite/gcc.dg/c1x-typedef-1.c b/gcc/testsuite/gcc.dg/c1x-typedef-1.c index a68b23ff5e6c..3224ba5a418e 100644 --- a/gcc/testsuite/gcc.dg/c1x-typedef-1.c +++ b/gcc/testsuite/gcc.dg/c1x-typedef-1.c @@ -1,8 +1,8 @@ -/* Test typedef redeclaration in C1X. */ +/* Test typedef redeclaration in C11. */ /* { dg-do compile } */ -/* { dg-options "-std=c1x -pedantic-errors" } */ +/* { dg-options "-std=c11 -pedantic-errors" } */ -/* C1X permits typedefs to be redeclared to the same type, but not to +/* C11 permits typedefs to be redeclared to the same type, but not to different-but-compatible types, and not when the type is variably modified. */ diff --git a/gcc/testsuite/gcc.dg/c1x-uni-string-1.c b/gcc/testsuite/gcc.dg/c1x-uni-string-1.c index 30a98c1d669b..9f86bea826b7 100644 --- a/gcc/testsuite/gcc.dg/c1x-uni-string-1.c +++ b/gcc/testsuite/gcc.dg/c1x-uni-string-1.c @@ -1,10 +1,10 @@ -/* Test Unicode strings in C1X. Test valid code. */ +/* Test Unicode strings in C11. Test valid code. */ /* { dg-do run } */ -/* { dg-options "-std=c1x -pedantic-errors" } */ +/* { dg-options "-std=c11 -pedantic-errors" } */ /* More thorough tests are in c-c++-common/raw-string-*.c; this test verifies the particular subset (Unicode but not raw strings) that - is in C1X. */ + is in C11. */ typedef __CHAR16_TYPE__ char16_t; typedef __CHAR32_TYPE__ char32_t; diff --git a/gcc/testsuite/gcc.dg/c1x-uni-string-2.c b/gcc/testsuite/gcc.dg/c1x-uni-string-2.c index 698b0c1df39a..583c38a87e29 100644 --- a/gcc/testsuite/gcc.dg/c1x-uni-string-2.c +++ b/gcc/testsuite/gcc.dg/c1x-uni-string-2.c @@ -1,6 +1,6 @@ -/* Test Unicode strings in C1X. Test constraint. */ +/* Test Unicode strings in C11. Test constraint. */ /* { dg-do compile } */ -/* { dg-options "-std=c1x -pedantic-errors" } */ +/* { dg-options "-std=c11 -pedantic-errors" } */ const void *p1 = L"a" u8"b"; /* { dg-error "concatenation" } */ const void *p2 = L"a" "b" u8"c"; /* { dg-error "concatenation" } */ diff --git a/gcc/testsuite/gcc.dg/c90-float-1.c b/gcc/testsuite/gcc.dg/c90-float-1.c index 5a2cab657a3c..649cddfa071e 100644 --- a/gcc/testsuite/gcc.dg/c90-float-1.c +++ b/gcc/testsuite/gcc.dg/c90-float-1.c @@ -3,7 +3,7 @@ /* { dg-do preprocess } */ /* { dg-options "-std=iso9899:1990 -pedantic-errors" } */ -/* This test checks that the C90 macros (but not the C99 or C1X ones) +/* This test checks that the C90 macros (but not the C99 or C11 ones) are defined; it does not check the correctness of their values. */ #include diff --git a/gcc/testsuite/gcc.dg/c99-float-1.c b/gcc/testsuite/gcc.dg/c99-float-1.c index f0dc39136e96..7ee87a564a46 100644 --- a/gcc/testsuite/gcc.dg/c99-float-1.c +++ b/gcc/testsuite/gcc.dg/c99-float-1.c @@ -3,7 +3,7 @@ /* { dg-do preprocess } */ /* { dg-options "-std=iso9899:1999 -pedantic-errors" } */ -/* This test checks that the C99 macros (but not the C1X ones) are defined; +/* This test checks that the C99 macros (but not the C11 ones) are defined; it does not check the correctness of their values. */ #include diff --git a/gcc/testsuite/gcc.dg/torture/builtin-complex-1.c b/gcc/testsuite/gcc.dg/torture/builtin-complex-1.c index 20dc4c48a287..0d26c9cc707d 100644 --- a/gcc/testsuite/gcc.dg/torture/builtin-complex-1.c +++ b/gcc/testsuite/gcc.dg/torture/builtin-complex-1.c @@ -1,6 +1,6 @@ /* Test __builtin_complex semantics. */ /* { dg-do run } */ -/* { dg-options "-std=c1x -pedantic-errors" } */ +/* { dg-options "-std=c11 -pedantic-errors" } */ /* { dg-add-options ieee } */ extern void exit (int);