aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2016-12-29 11:35:33 +0100
committerMartin Liska <marxin@gcc.gnu.org>2016-12-29 10:35:33 +0000
commitd4a6c0ea4b7e374eafc6ca6f47d398514e5fb835 (patch)
tree3be0b8ac23c2c1529ddd76e55c53949f13e049fd /gcc
parentd4f89c814f666c0556bd89f1f5d78e9a3768becb (diff)
downloadgcc-d4a6c0ea4b7e374eafc6ca6f47d398514e5fb835.zip
gcc-d4a6c0ea4b7e374eafc6ca6f47d398514e5fb835.tar.gz
gcc-d4a6c0ea4b7e374eafc6ca6f47d398514e5fb835.tar.bz2
Add RejectNegative for a c option.
PR c/78933 * g++.dg/pr78933.C: New test. PR c/78933 * c.opt (strong-eval-order): Add RejectNegative keyword. From-SVN: r243960
Diffstat (limited to 'gcc')
-rw-r--r--gcc/c-family/ChangeLog5
-rw-r--r--gcc/c-family/c.opt2
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/g++.dg/pr78933.C3
4 files changed, 14 insertions, 1 deletions
diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog
index 72a6803..d76ecd3 100644
--- a/gcc/c-family/ChangeLog
+++ b/gcc/c-family/ChangeLog
@@ -1,3 +1,8 @@
+2016-12-29 Martin Liska <mliska@suse.cz>
+
+ PR c/78933
+ * c.opt (strong-eval-order): Add RejectNegative keyword.
+
2016-12-22 Jason Merrill <jason@redhat.com>
Implement P0522R0, matching of template template arguments.
diff --git a/gcc/c-family/c.opt b/gcc/c-family/c.opt
index 1d40d76f1..4652708 100644
--- a/gcc/c-family/c.opt
+++ b/gcc/c-family/c.opt
@@ -1655,7 +1655,7 @@ Follow the C++17 evaluation order requirements for assignment expressions,
shift, member function calls, etc.
fstrong-eval-order=
-C++ ObjC++ Common Var(flag_strong_eval_order) Joined Enum(strong_eval_order) Init(-1)
+C++ ObjC++ Common Var(flag_strong_eval_order) Joined Enum(strong_eval_order) RejectNegative Init(-1)
Follow the C++17 evaluation order requirements for assignment expressions,
shift, member function calls, etc.
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 09b2b5b..5e6db28 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2016-12-29 Martin Liska <mliska@suse.cz>
+
+ PR c/78933
+ * g++.dg/pr78933.C: New test.
+
2016-12-28 Uros Bizjak <ubizjak@gmail.com>
PR target/78904
diff --git a/gcc/testsuite/g++.dg/pr78933.C b/gcc/testsuite/g++.dg/pr78933.C
new file mode 100644
index 0000000..91a3a51
--- /dev/null
+++ b/gcc/testsuite/g++.dg/pr78933.C
@@ -0,0 +1,3 @@
+// PR c/78933
+// { dg-do compile }
+// { dg-options "-fno-strong-eval-order" }