From: Jakub Jelinek Date: Tue, 21 Nov 2017 14:50:03 +0000 (+0100) Subject: re PR target/82880 (gcc --help=target --help=optimizers hangs on mips) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=069882967038dc425a709e9a3b301a38f879195d;p=gcc.git re PR target/82880 (gcc --help=target --help=optimizers hangs on mips) 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ab0d1afabc7..6b4bf875595 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2017-11-21 James Cowgill + Jakub Jelinek + + 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 PR tree-optimization/83086 diff --git a/gcc/config/mips/frame-header-opt.c b/gcc/config/mips/frame-header-opt.c index 76930792e92..8c41562ab4f 100644 --- a/gcc/config/mips/frame-header-opt.c +++ b/gcc/config/mips/frame-header-opt.c @@ -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); } diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 8d64a22d5c1..b508745c5ad 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2017-11-21 Jakub Jelinek + + PR target/82880 + * gcc.dg/opts-8.c: New test. + 2017-11-21 Claudiu Zissulescu * 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 index 00000000000..7837197ed43 --- /dev/null +++ b/gcc/testsuite/gcc.dg/opts-8.c @@ -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 ".*" } */