diff options
author | Jason Merrill <jason@redhat.com> | 2016-03-15 08:08:31 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2016-03-15 08:08:31 -0400 |
commit | 2aaeea194be58f1ac62c5a3ef6528ed2ae8e92ec (patch) | |
tree | 5ca057b6eafdc0abc79daff46e0295d6744dbbfd /libcpp | |
parent | 08da25814139d7eb1264acb66b60cbb17a123deb (diff) | |
download | gcc-2aaeea194be58f1ac62c5a3ef6528ed2ae8e92ec.zip gcc-2aaeea194be58f1ac62c5a3ef6528ed2ae8e92ec.tar.gz gcc-2aaeea194be58f1ac62c5a3ef6528ed2ae8e92ec.tar.bz2 |
expr.c (cpp_classify_number): Hex floats are new in C++1z.
* libcpp/expr.c (cpp_classify_number): Hex floats are new in C++1z.
* libcpp/init.c (lang_defaults): Likewise.
* gcc/c-family/c-cppbuiltin.c (c_cpp_builtins): Set __cpp_hex_float.
From-SVN: r234213
Diffstat (limited to 'libcpp')
-rw-r--r-- | libcpp/ChangeLog | 5 | ||||
-rw-r--r-- | libcpp/expr.c | 2 | ||||
-rw-r--r-- | libcpp/init.c | 4 |
3 files changed, 8 insertions, 3 deletions
diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog index 19b9310..a2cb02f 100644 --- a/libcpp/ChangeLog +++ b/libcpp/ChangeLog @@ -1,3 +1,8 @@ +2016-03-14 Jason Merrill <jason@redhat.com> + + * expr.c (cpp_classify_number): Hex floats are new in C++1z. + * init.c (lang_defaults): Likewise. + 2016-03-09 David Malcolm <dmalcolm@redhat.com> PR c/68473 diff --git a/libcpp/expr.c b/libcpp/expr.c index 5353bde..5cdca6f 100644 --- a/libcpp/expr.c +++ b/libcpp/expr.c @@ -552,7 +552,7 @@ cpp_classify_number (cpp_reader *pfile, const cpp_token *token, { if (CPP_OPTION (pfile, cplusplus)) cpp_error_with_line (pfile, CPP_DL_PEDWARN, virtual_location, 0, - "use of C++11 hexadecimal floating constant"); + "use of C++1z hexadecimal floating constant"); else cpp_error_with_line (pfile, CPP_DL_PEDWARN, virtual_location, 0, "use of C99 hexadecimal floating constant"); diff --git a/libcpp/init.c b/libcpp/init.c index 6bc4296..4343075 100644 --- a/libcpp/init.c +++ b/libcpp/init.c @@ -105,9 +105,9 @@ static const struct lang_flags lang_defaults[] = /* GNUCXX */ { 0, 1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 }, /* CXX98 */ { 0, 1, 0, 1, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0 }, /* GNUCXX11 */ { 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0, 0, 0 }, - /* CXX11 */ { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0 }, + /* CXX11 */ { 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0 }, /* GNUCXX14 */ { 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 0 }, - /* CXX14 */ { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 }, + /* CXX14 */ { 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 }, /* GNUCXX1Z */ { 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1 }, /* CXX1Z */ { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1 }, /* ASM */ { 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } |