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
322b8466
Commit
322b8466
authored
Mar 28, 2016
by
Jason Merrill
Committed by
Jason Merrill
Mar 28, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for.
From-SVN: r234508
parent
6f6d25c9
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
7 deletions
+11
-7
gcc/c-family/ChangeLog
+4
-0
gcc/c-family/c-cppbuiltin.c
+1
-1
gcc/testsuite/g++.dg/cpp1y/feat-cxx11.C
+2
-2
gcc/testsuite/g++.dg/cpp1y/feat-cxx14.C
+2
-2
gcc/testsuite/g++.dg/cpp1z/feat-cxx1z.C
+2
-2
No files found.
gcc/c-family/ChangeLog
View file @
322b8466
2016
-
03
-
28
Jason
Merrill
<
jason
@
redhat
.
com
>
*
c
-
cppbuiltin
.
c
(
c_cpp_builtins
):
Update
__cpp_range_based_for
.
2016
-
03
-
23
Marek
Polacek
<
polacek
@
redhat
.
com
>
PR
c
++/
69884
...
...
gcc/c-family/c-cppbuiltin.c
View file @
322b8466
...
...
@@ -841,7 +841,7 @@ c_cpp_builtins (cpp_reader *pfile)
cpp_define
(
pfile
,
"__cpp_lambdas=200907"
);
if
(
cxx_dialect
==
cxx11
)
cpp_define
(
pfile
,
"__cpp_constexpr=200704"
);
cpp_define
(
pfile
,
"__cpp_range_based_for=20
0907
"
);
cpp_define
(
pfile
,
"__cpp_range_based_for=20
1603
"
);
if
(
cxx_dialect
<=
cxx14
)
cpp_define
(
pfile
,
"__cpp_static_assert=200410"
);
cpp_define
(
pfile
,
"__cpp_decltype=200707"
);
...
...
gcc/testsuite/g++.dg/cpp1y/feat-cxx11.C
View file @
322b8466
...
...
@@ -55,8 +55,8 @@
#ifndef __cpp_range_based_for
# error "__cpp_range_based_for"
#elif __cpp_range_based_for
!=
200907
# error "__cpp_range_based_for
!=
200907"
#elif __cpp_range_based_for
<
200907
# error "__cpp_range_based_for
<
200907"
#endif
#ifndef __cpp_static_assert
...
...
gcc/testsuite/g++.dg/cpp1y/feat-cxx14.C
View file @
322b8466
...
...
@@ -48,8 +48,8 @@
#ifndef __cpp_range_based_for
# error "__cpp_range_based_for"
#elif __cpp_range_based_for
!=
200907
# error "__cpp_range_based_for
!=
200907"
#elif __cpp_range_based_for
<
200907
# error "__cpp_range_based_for
<
200907"
#endif
#ifndef __cpp_static_assert
...
...
gcc/testsuite/g++.dg/cpp1z/feat-cxx1z.C
View file @
322b8466
...
...
@@ -42,8 +42,8 @@
#ifndef __cpp_range_based_for
# error "__cpp_range_based_for"
#elif __cpp_range_based_for != 20
0907
# error "__cpp_range_based_for != 20
0907
"
#elif __cpp_range_based_for != 20
1603
# error "__cpp_range_based_for != 20
1603
"
#endif
#ifndef __cpp_decltype
...
...
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