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
452df4a4
Commit
452df4a4
authored
Aug 10, 2016
by
Jason Merrill
Committed by
Jason Merrill
Aug 10, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* c-cppbuiltin.c (c_cpp_builtins): Define __cpp_if_constexpr.
From-SVN: r239340
parent
99f9d4b1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
0 deletions
+11
-0
gcc/c-family/ChangeLog
+4
-0
gcc/c-family/c-cppbuiltin.c
+1
-0
gcc/testsuite/g++.dg/cpp1z/feat-cxx1z.C
+6
-0
No files found.
gcc/c-family/ChangeLog
View file @
452df4a4
2016
-
08
-
10
Jason
Merrill
<
jason
@
redhat
.
com
>
*
c
-
cppbuiltin
.
c
(
c_cpp_builtins
):
Define
__cpp_if_constexpr
.
2016
-
08
-
09
Jason
Merrill
<
jason
@
redhat
.
com
>
2016
-
08
-
09
Jason
Merrill
<
jason
@
redhat
.
com
>
*
c
-
common
.
c
(
c_common_attribute_table
):
vector_size
affects
type
*
c
-
common
.
c
(
c_common_attribute_table
):
vector_size
affects
type
...
...
gcc/c-family/c-cppbuiltin.c
View file @
452df4a4
...
@@ -882,6 +882,7 @@ c_cpp_builtins (cpp_reader *pfile)
...
@@ -882,6 +882,7 @@ c_cpp_builtins (cpp_reader *pfile)
cpp_define
(
pfile
,
"__cpp_nontype_template_args=201411"
);
cpp_define
(
pfile
,
"__cpp_nontype_template_args=201411"
);
cpp_define
(
pfile
,
"__cpp_range_based_for=201603"
);
cpp_define
(
pfile
,
"__cpp_range_based_for=201603"
);
cpp_define
(
pfile
,
"__cpp_constexpr=201603"
);
cpp_define
(
pfile
,
"__cpp_constexpr=201603"
);
cpp_define
(
pfile
,
"__cpp_if_constexpr=201606"
);
}
}
if
(
flag_concepts
)
if
(
flag_concepts
)
/* Use a value smaller than the 201507 specified in
/* Use a value smaller than the 201507 specified in
...
...
gcc/testsuite/g++.dg/cpp1z/feat-cxx1z.C
View file @
452df4a4
...
@@ -344,6 +344,12 @@
...
@@ -344,6 +344,12 @@
# error "__cpp_hex_float != 201603"
# error "__cpp_hex_float != 201603"
#endif
#endif
#ifndef __cpp_if_constexpr
# error "__cpp_if_constexpr"
#elif __cpp_if_constexpr != 201606
# error "__cpp_if_constexpr != 201606"
#endif
#ifdef __has_cpp_attribute
#ifdef __has_cpp_attribute
# if ! __has_cpp_attribute(maybe_unused)
# if ! __has_cpp_attribute(maybe_unused)
...
...
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