re PR driver/78957 (ICE: SIGSEGV with -fno-sso-struct=web)
authorJakub Jelinek <jakub@redhat.com>
Wed, 4 Jan 2017 20:25:13 +0000 (21:25 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 4 Jan 2017 20:25:13 +0000 (21:25 +0100)
PR driver/78957
* c.opt (fsso-struct=): Add RejectNegative.

* gcc.dg/pr78957.c: New test.

From-SVN: r244072

gcc/c-family/ChangeLog
gcc/c-family/c.opt
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr78957.c [new file with mode: 0644]

index 80735aeeef88c5f6a5a83d2f561c516aec0a574a..468b7dde8f5944868b078bd2552c08a936830e2e 100644 (file)
@@ -1,3 +1,8 @@
+2017-01-04  Jakub Jelinek  <jakub@redhat.com>
+
+       PR driver/78957
+       * c.opt (fsso-struct=): Add RejectNegative.
+
 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
 
        Update copyright years.
index 3c06aec34b26ebad4cd5c0a9c1023c528071e4bb..3f6c67fbc7e042627c83bba424641aa2cc701e30 100644 (file)
@@ -1626,7 +1626,7 @@ fsquangle
 C++ ObjC++ Ignore Warn(switch %qs is no longer supported)
 
 fsso-struct=
-C ObjC Joined Enum(sso_struct) Var(default_sso) Init(SSO_NATIVE)
+C ObjC Joined RejectNegative Enum(sso_struct) Var(default_sso) Init(SSO_NATIVE)
 -fsso-struct=[big-endian|little-endian]        Set the default scalar storage order.
 
 Enum
index a5572645e922da7a60d2477303c1ad3050f071af..fdd8aa156288b49a6d62ea1580e8ce26d37171a2 100644 (file)
@@ -1,5 +1,8 @@
 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
 
+       PR driver/78957
+       * gcc.dg/pr78957.c: New test.
+
        * g++.dg/cpp1y/auto-fn34.C: New test.
 
        PR c++/71182
diff --git a/gcc/testsuite/gcc.dg/pr78957.c b/gcc/testsuite/gcc.dg/pr78957.c
new file mode 100644 (file)
index 0000000..305023e
--- /dev/null
@@ -0,0 +1,6 @@
+/* PR driver/78957 */
+/* { dg-do compile } */
+/* { dg-options "-fno-sso-struct=none" } */
+/* { dg-error "unrecognized command line option" "" { target *-*-* } 0 } */
+
+int i;