aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-family
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2018-10-11 09:13:55 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2018-10-11 09:13:55 +0200
commit46c6269045731c2a13aa2f0d227f90c34d5d3edd (patch)
tree64d1bcd47e111f9d1f4dae26aa9a877e58a44e36 /gcc/c-family
parentf7904392b7b6ce8a9949b62692342f3c1cdc3621 (diff)
downloadgcc-46c6269045731c2a13aa2f0d227f90c34d5d3edd.zip
gcc-46c6269045731c2a13aa2f0d227f90c34d5d3edd.tar.gz
gcc-46c6269045731c2a13aa2f0d227f90c34d5d3edd.tar.bz2
c-lex.c (c_common_has_attribute): Return 201803 instead of 20180312 for no_unique_address.
* c-lex.c (c_common_has_attribute): Return 201803 instead of 20180312 for no_unique_address. * g++.dg/cpp2a/feat-cxx2a.C: New test. From-SVN: r265034
Diffstat (limited to 'gcc/c-family')
-rw-r--r--gcc/c-family/ChangeLog5
-rw-r--r--gcc/c-family/c-lex.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog
index 8e8005d..71251b9 100644
--- a/gcc/c-family/ChangeLog
+++ b/gcc/c-family/ChangeLog
@@ -1,3 +1,8 @@
+2018-10-11 Jakub Jelinek <jakub@redhat.com>
+
+ * c-lex.c (c_common_has_attribute): Return 201803 instead of 20180312
+ for no_unique_address.
+
2018-10-09 David Malcolm <dmalcolm@redhat.com>
* c-common.c (c_option_controlling_cpp_error): Rename to...
diff --git a/gcc/c-family/c-lex.c b/gcc/c-family/c-lex.c
index 78a1324..28a820a 100644
--- a/gcc/c-family/c-lex.c
+++ b/gcc/c-family/c-lex.c
@@ -357,7 +357,7 @@ c_common_has_attribute (cpp_reader *pfile)
|| is_attribute_p ("fallthrough", attr_name))
result = 201603;
else if (is_attribute_p ("no_unique_address", attr_name))
- result = 20180312;
+ result = 201803;
if (result)
attr_name = NULL_TREE;
}