Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
1bec9d5f
Commit
1bec9d5f
authored
11 years ago
by
Mike Stump
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
c1x --> c11.
From-SVN: r203927
parent
574733d3
Hide whitespace changes
Inline
Side-by-side
Showing
27 changed files
with
54 additions
and
54 deletions
+54
-54
gcc/testsuite/gcc.dg/c1x-align-1.c
+2
-2
gcc/testsuite/gcc.dg/c1x-align-2.c
+2
-2
gcc/testsuite/gcc.dg/c1x-align-3.c
+2
-2
gcc/testsuite/gcc.dg/c1x-align-4.c
+2
-2
gcc/testsuite/gcc.dg/c1x-align-5.c
+2
-2
gcc/testsuite/gcc.dg/c1x-anon-struct-1.c
+2
-2
gcc/testsuite/gcc.dg/c1x-anon-struct-2.c
+2
-2
gcc/testsuite/gcc.dg/c1x-anon-struct-3.c
+2
-2
gcc/testsuite/gcc.dg/c1x-float-1.c
+3
-3
gcc/testsuite/gcc.dg/c1x-noreturn-1.c
+2
-2
gcc/testsuite/gcc.dg/c1x-noreturn-2.c
+2
-2
gcc/testsuite/gcc.dg/c1x-noreturn-3.c
+2
-2
gcc/testsuite/gcc.dg/c1x-noreturn-4.c
+2
-2
gcc/testsuite/gcc.dg/c1x-noreturn-5.c
+2
-2
gcc/testsuite/gcc.dg/c1x-pointer-float-1.c
+2
-2
gcc/testsuite/gcc.dg/c1x-static-assert-1.c
+2
-2
gcc/testsuite/gcc.dg/c1x-static-assert-2.c
+2
-2
gcc/testsuite/gcc.dg/c1x-static-assert-3.c
+2
-2
gcc/testsuite/gcc.dg/c1x-static-assert-4.c
+2
-2
gcc/testsuite/gcc.dg/c1x-static-assert-5.c
+2
-2
gcc/testsuite/gcc.dg/c1x-static-assert-6.c
+2
-2
gcc/testsuite/gcc.dg/c1x-typedef-1.c
+3
-3
gcc/testsuite/gcc.dg/c1x-uni-string-1.c
+3
-3
gcc/testsuite/gcc.dg/c1x-uni-string-2.c
+2
-2
gcc/testsuite/gcc.dg/c90-float-1.c
+1
-1
gcc/testsuite/gcc.dg/c99-float-1.c
+1
-1
gcc/testsuite/gcc.dg/torture/builtin-complex-1.c
+1
-1
No files found.
gcc/testsuite/gcc.dg/c1x-align-1.c
View file @
1bec9d5f
/* Test C1
X
alignment support. Test valid code. */
/* Test C1
1
alignment support. Test valid code. */
/* { dg-do compile } */
/* { dg-options "-std=c1
x
-pedantic-errors" } */
/* { dg-options "-std=c1
1
-pedantic-errors" } */
#include <stddef.h>
...
...
This diff is collapsed.
Click to expand it.
gcc/testsuite/gcc.dg/c1x-align-2.c
View file @
1bec9d5f
/* Test C1
X
alignment support. Test valid code using stdalign.h. */
/* Test C1
1
alignment support. Test valid code using stdalign.h. */
/* { dg-do run } */
/* { dg-options "-std=c1
x
-pedantic-errors" } */
/* { dg-options "-std=c1
1
-pedantic-errors" } */
#include <stdalign.h>
#include <stddef.h>
...
...
This diff is collapsed.
Click to expand it.
gcc/testsuite/gcc.dg/c1x-align-3.c
View file @
1bec9d5f
/* Test C1
X
alignment support. Test invalid code. */
/* Test C1
1
alignment support. Test invalid code. */
/* { dg-do compile } */
/* { dg-options "-std=c1
x
-pedantic-errors" } */
/* { dg-options "-std=c1
1
-pedantic-errors" } */
int
a
=
_Alignof
(
void
(
void
));
/* { dg-error "function" } */
struct
s
;
...
...
This diff is collapsed.
Click to expand it.
gcc/testsuite/gcc.dg/c1x-align-4.c
View file @
1bec9d5f
/* Test C1
X
alignment support. Test reducing alignment (assumes there
/* Test C1
1
alignment support. Test reducing alignment (assumes there
are at least some alignment constraints). */
/* { dg-do compile } */
/* { dg-options "-std=c1
x
-pedantic-errors" } */
/* { dg-options "-std=c1
1
-pedantic-errors" } */
/* { dg-skip-if "no alignment constraints" { "avr-*-*" } { "*" } { "" } } */
#include <stddef.h>
...
...
This diff is collapsed.
Click to expand it.
gcc/testsuite/gcc.dg/c1x-align-5.c
View file @
1bec9d5f
/* Test C1
X
alignment support. Test invalid code. */
/* Test C1
1
alignment support. Test invalid code. */
/* { dg-do compile } */
/* { dg-options "-std=c1
x
-pedantic-errors" } */
/* { dg-options "-std=c1
1
-pedantic-errors" } */
void
foo
(
int
[]);
void
bar1
(
int
[
_Alignas
(
double
)
10
]);
/* { dg-error "expected expression before" } */
...
...
This diff is collapsed.
Click to expand it.
gcc/testsuite/gcc.dg/c1x-anon-struct-1.c
View file @
1bec9d5f
/* Test for anonymous structures and unions in C1
X
. */
/* Test for anonymous structures and unions in C1
1
. */
/* { dg-do compile } */
/* { dg-options "-std=c1
x
-pedantic-errors" } */
/* { dg-options "-std=c1
1
-pedantic-errors" } */
#include <stddef.h>
...
...
This diff is collapsed.
Click to expand it.
gcc/testsuite/gcc.dg/c1x-anon-struct-2.c
View file @
1bec9d5f
/* Test for anonymous structures and unions in C1
X
. Test for invalid
/* Test for anonymous structures and unions in C1
1
. Test for invalid
cases. */
/* { dg-do compile } */
/* { dg-options "-std=c1
x
-pedantic-errors" } */
/* { dg-options "-std=c1
1
-pedantic-errors" } */
typedef
struct
s0
{
...
...
This diff is collapsed.
Click to expand it.
gcc/testsuite/gcc.dg/c1x-anon-struct-3.c
View file @
1bec9d5f
/* Test for anonymous structures and unions in C1
X
. Test for invalid
/* Test for anonymous structures and unions in C1
1
. Test for invalid
cases: typedefs disallowed by N1549. */
/* { dg-do compile } */
/* { dg-options "-std=c1
x
-pedantic-errors" } */
/* { dg-options "-std=c1
1
-pedantic-errors" } */
typedef
struct
{
...
...
This diff is collapsed.
Click to expand it.
gcc/testsuite/gcc.dg/c1x-float-1.c
View file @
1bec9d5f
/* Test for <float.h> C1
X
macros. */
/* Test for <float.h> C1
1
macros. */
/* Origin: Joseph Myers <joseph@codesourcery.com> */
/* { dg-do preprocess } */
/* { dg-options "-std=c1
x
-pedantic-errors" } */
/* { dg-options "-std=c1
1
-pedantic-errors" } */
/* This test checks that the C1
X
macros are defined;
/* This test checks that the C1
1
macros are defined;
it does not check the correctness of their values. */
#include <float.h>
...
...
This diff is collapsed.
Click to expand it.
gcc/testsuite/gcc.dg/c1x-noreturn-1.c
View file @
1bec9d5f
/* Test C1
X
_Noreturn. Test valid code. */
/* Test C1
1
_Noreturn. Test valid code. */
/* { dg-do compile } */
/* { dg-options "-std=c1
x
-pedantic-errors" } */
/* { dg-options "-std=c1
1
-pedantic-errors" } */
_Noreturn
void
exit
(
int
);
...
...
This diff is collapsed.
Click to expand it.
gcc/testsuite/gcc.dg/c1x-noreturn-2.c
View file @
1bec9d5f
/* Test C1
X
_Noreturn. Test valid code using stdnoreturn.h. */
/* Test C1
1
_Noreturn. Test valid code using stdnoreturn.h. */
/* { dg-do run } */
/* { dg-options "-std=c1
x
-pedantic-errors" } */
/* { dg-options "-std=c1
1
-pedantic-errors" } */
#include <stdnoreturn.h>
...
...
This diff is collapsed.
Click to expand it.
gcc/testsuite/gcc.dg/c1x-noreturn-3.c
View file @
1bec9d5f
/* Test C1
X
_Noreturn. Test _Noreturn on main, hosted. */
/* Test C1
1
_Noreturn. Test _Noreturn on main, hosted. */
/* { dg-do compile } */
/* { dg-options "-std=c1
x
-pedantic-errors -fhosted" } */
/* { dg-options "-std=c1
1
-pedantic-errors -fhosted" } */
_Noreturn
void
exit
(
int
);
...
...
This diff is collapsed.
Click to expand it.
gcc/testsuite/gcc.dg/c1x-noreturn-4.c
View file @
1bec9d5f
/* Test C1
X
_Noreturn. Test _Noreturn on main, freestanding. */
/* Test C1
1
_Noreturn. Test _Noreturn on main, freestanding. */
/* { dg-do compile } */
/* { dg-options "-std=c1
x
-pedantic-errors -ffreestanding" } */
/* { dg-options "-std=c1
1
-pedantic-errors -ffreestanding" } */
_Noreturn
void
exit
(
int
);
...
...
This diff is collapsed.
Click to expand it.
gcc/testsuite/gcc.dg/c1x-noreturn-5.c
View file @
1bec9d5f
/* Test C1
X
_Noreturn. Test invalid uses. */
/* Test C1
1
_Noreturn. Test invalid uses. */
/* { dg-do compile } */
/* { dg-options "-std=c1
x
-pedantic-errors" } */
/* { dg-options "-std=c1
1
-pedantic-errors" } */
_Noreturn
struct
s
;
/* { dg-error "empty declaration" } */
...
...
This diff is collapsed.
Click to expand it.
gcc/testsuite/gcc.dg/c1x-pointer-float-1.c
View file @
1bec9d5f
/* Test C1
X
constraint against pointer / floating-point casts. */
/* Test C1
1
constraint against pointer / floating-point casts. */
/* { dg-do compile } */
/* { dg-options "-std=c1
x
-pedantic-errors" } */
/* { dg-options "-std=c1
1
-pedantic-errors" } */
void
*
p
;
float
f
;
...
...
This diff is collapsed.
Click to expand it.
gcc/testsuite/gcc.dg/c1x-static-assert-1.c
View file @
1bec9d5f
/* Test C1
X
static assertions. Valid assertions. */
/* Test C1
1
static assertions. Valid assertions. */
/* { dg-do compile } */
/* { dg-options "-std=c1
x
-pedantic-errors" } */
/* { dg-options "-std=c1
1
-pedantic-errors" } */
_Static_assert
(
1
,
"foo"
);
...
...
This diff is collapsed.
Click to expand it.
gcc/testsuite/gcc.dg/c1x-static-assert-2.c
View file @
1bec9d5f
/* Test C1
X
static assertions. Failed assertions. */
/* Test C1
1
static assertions. Failed assertions. */
/* { dg-do compile } */
/* { dg-options "-std=c1
x
-pedantic-errors" } */
/* { dg-options "-std=c1
1
-pedantic-errors" } */
_Static_assert
(
0
,
"assert1"
);
/* { dg-error "static assertion failed: \"assert1\"" } */
...
...
This diff is collapsed.
Click to expand it.
gcc/testsuite/gcc.dg/c1x-static-assert-3.c
View file @
1bec9d5f
/* Test C1
X
static assertions. Invalid assertions. */
/* Test C1
1
static assertions. Invalid assertions. */
/* { dg-do compile } */
/* { dg-options "-std=c1
x
-pedantic-errors" } */
/* { dg-options "-std=c1
1
-pedantic-errors" } */
_Static_assert
(
__INT_MAX__
*
2
,
"overflow"
);
/* { dg-warning "integer overflow in expression" } */
/* { dg-error "overflow in constant expression" "error" { target *-*-* } 5 } */
...
...
This diff is collapsed.
Click to expand it.
gcc/testsuite/gcc.dg/c1x-static-assert-4.c
View file @
1bec9d5f
/* Test C1
X
static assertions. More invalid assertions. */
/* Test C1
1
static assertions. More invalid assertions. */
/* { dg-do compile } */
/* { dg-options "-std=c1
x
-pedantic-errors" } */
/* { dg-options "-std=c1
1
-pedantic-errors" } */
/* Static assertions not valid in old-style parameter declarations
because declarations there must have declarators. */
...
...
This diff is collapsed.
Click to expand it.
gcc/testsuite/gcc.dg/c1x-static-assert-5.c
View file @
1bec9d5f
/* Test C1
X
static assertions. Non-constant-expression without -pedantic. */
/* Test C1
1
static assertions. Non-constant-expression without -pedantic. */
/* { dg-do compile } */
/* { dg-options "-std=c1
x
" } */
/* { dg-options "-std=c1
1
" } */
_Static_assert
((
int
)(
1
.
0
+
1
.
0
),
"non-constant-expression"
);
This diff is collapsed.
Click to expand it.
gcc/testsuite/gcc.dg/c1x-static-assert-6.c
View file @
1bec9d5f
/* Test C1
X
static assertions. Non-constant-expression with -pedantic. */
/* Test C1
1
static assertions. Non-constant-expression with -pedantic. */
/* { dg-do compile } */
/* { dg-options "-std=c1
x
-pedantic" } */
/* { dg-options "-std=c1
1
-pedantic" } */
_Static_assert
((
int
)(
1
.
0
+
1
.
0
),
"non-constant-expression"
);
/* { dg-warning "not an integer constant expression" } */
This diff is collapsed.
Click to expand it.
gcc/testsuite/gcc.dg/c1x-typedef-1.c
View file @
1bec9d5f
/* Test typedef redeclaration in C1
X
. */
/* Test typedef redeclaration in C1
1
. */
/* { dg-do compile } */
/* { dg-options "-std=c1
x
-pedantic-errors" } */
/* { dg-options "-std=c1
1
-pedantic-errors" } */
/* C1
X
permits typedefs to be redeclared to the same type, but not to
/* C1
1
permits typedefs to be redeclared to the same type, but not to
different-but-compatible types, and not when the type is variably
modified. */
...
...
This diff is collapsed.
Click to expand it.
gcc/testsuite/gcc.dg/c1x-uni-string-1.c
View file @
1bec9d5f
/* Test Unicode strings in C1
X
. Test valid code. */
/* Test Unicode strings in C1
1
. Test valid code. */
/* { dg-do run } */
/* { dg-options "-std=c1
x
-pedantic-errors" } */
/* { dg-options "-std=c1
1
-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 C1
X
. */
is in C1
1
. */
typedef
__CHAR16_TYPE__
char16_t
;
typedef
__CHAR32_TYPE__
char32_t
;
...
...
This diff is collapsed.
Click to expand it.
gcc/testsuite/gcc.dg/c1x-uni-string-2.c
View file @
1bec9d5f
/* Test Unicode strings in C1
X
. Test constraint. */
/* Test Unicode strings in C1
1
. Test constraint. */
/* { dg-do compile } */
/* { dg-options "-std=c1
x
-pedantic-errors" } */
/* { dg-options "-std=c1
1
-pedantic-errors" } */
const
void
*
p1
=
L"a"
u8"b"
;
/* { dg-error "concatenation" } */
const
void
*
p2
=
L"a"
"b"
u8"c"
;
/* { dg-error "concatenation" } */
...
...
This diff is collapsed.
Click to expand it.
gcc/testsuite/gcc.dg/c90-float-1.c
View file @
1bec9d5f
...
...
@@ -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 C1
X
ones)
/* This test checks that the C90 macros (but not the C99 or C1
1
ones)
are defined; it does not check the correctness of their values. */
#include <float.h>
...
...
This diff is collapsed.
Click to expand it.
gcc/testsuite/gcc.dg/c99-float-1.c
View file @
1bec9d5f
...
...
@@ -3,7 +3,7 @@
/* { dg-do preprocess } */
/* { dg-options "-std=iso9899:1999 -pedantic-errors" } */
/* This test checks that the C99 macros (but not the C1
X
ones) are defined;
/* This test checks that the C99 macros (but not the C1
1
ones) are defined;
it does not check the correctness of their values. */
#include <float.h>
...
...
This diff is collapsed.
Click to expand it.
gcc/testsuite/gcc.dg/torture/builtin-complex-1.c
View file @
1bec9d5f
/* Test __builtin_complex semantics. */
/* { dg-do run } */
/* { dg-options "-std=c1
x
-pedantic-errors" } */
/* { dg-options "-std=c1
1
-pedantic-errors" } */
/* { dg-add-options ieee } */
extern
void
exit
(
int
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment