re PR target/82880 (gcc --help=target --help=optimizers hangs on mips)
authorJakub Jelinek <jakub@gcc.gnu.org>
Tue, 21 Nov 2017 14:50:03 +0000 (15:50 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 21 Nov 2017 14:50:03 +0000 (15:50 +0100)
PR target/82880
* config/mips/frame-header-opt.c (mips_register_frame_header_opt):
Remove static keyword from f variable.

* gcc.dg/opts-8.c: New test.

From-SVN: r255004

gcc/ChangeLog
gcc/config/mips/frame-header-opt.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/opts-8.c [new file with mode: 0644]

index ab0d1afabc7dfbb869ce51c9fcb2108e276765e9..6b4bf875595d1452ff418895e6133713591e8445 100644 (file)
@@ -1,3 +1,10 @@
+2017-11-21  James Cowgill  <James.Cowgill@imgtec.com>
+           Jakub Jelinek  <jakub@redhat.com>
+
+       PR target/82880
+       * config/mips/frame-header-opt.c (mips_register_frame_header_opt):
+       Remove static keyword from f variable.
+
 2017-11-21  Jakub Jelinek  <jakub@redhat.com>
 
        PR tree-optimization/83086
index 76930792e92a3192b4687353a8bc623a87f1c69d..8c41562ab4fae4ea5820ed6cf0931486856be791 100644 (file)
@@ -99,8 +99,7 @@ void
 mips_register_frame_header_opt (void)
 {
   opt_pass *p = make_pass_ipa_frame_header_opt (g);
-  static struct register_pass_info f =
-    {p, "comdats", 1, PASS_POS_INSERT_AFTER };
+  struct register_pass_info f = { p, "comdats", 1, PASS_POS_INSERT_AFTER };
   register_pass (&f);
 }
 
index 8d64a22d5c1c92b956557f8b9c46d8f53aef534b..b508745c5ad6698f1053a204d39b588eec7c27f9 100644 (file)
@@ -1,3 +1,8 @@
+2017-11-21  Jakub Jelinek  <jakub@redhat.com>
+
+       PR target/82880
+       * gcc.dg/opts-8.c: New test.
+
 2017-11-21  Claudiu Zissulescu  <claziss@synopsys.com>
 
        * gcc.target/arc/loop-5.cpp: New test.
diff --git a/gcc/testsuite/gcc.dg/opts-8.c b/gcc/testsuite/gcc.dg/opts-8.c
new file mode 100644 (file)
index 0000000..7837197
--- /dev/null
@@ -0,0 +1,6 @@
+/* PR target/82880 */
+/* Test we don't ICE or hang.  */
+/* { dg-do compile } */
+/* { dg-options "--help=target --help=optimizers" } */
+/* { dg-allow-blank-lines-in-output 1 } */
+/* { dg-prune-output ".*" } */