From: Richard Biener Date: Wed, 27 Feb 2019 13:24:40 +0000 (+0000) Subject: passes.c (should_skip_pass_p): Do not skip cgraph-edge building. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=04c311d3bdabea818589093127df3b88593a8a33;p=gcc.git passes.c (should_skip_pass_p): Do not skip cgraph-edge building. 2019-02-27 Richard Biener * passes.c (should_skip_pass_p): Do not skip cgraph-edge building. * gcc.dg/gimplefe-36.c: New testcase. From-SVN: r269252 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3fbf6a44d73..b164b601ddf 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2019-02-27 Richard Biener + + * passes.c (should_skip_pass_p): Do not skip cgraph-edge + building. + 2019-02-27 Richard Biener PR debug/88878 diff --git a/gcc/passes.c b/gcc/passes.c index f838b586bff..7602abd572d 100644 --- a/gcc/passes.c +++ b/gcc/passes.c @@ -2363,6 +2363,10 @@ should_skip_pass_p (opt_pass *pass) && pass->properties_provided != 0) return false; + /* We need to (re-)build cgraph edges as needed. */ + if (strstr (pass->name, "build_cgraph_edges") != NULL) + return false; + /* Don't skip df init; later RTL passes need it. */ if (strstr (pass->name, "dfinit") != NULL) return false; diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 2365a4f8736..8b6ecef774d 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2019-02-27 Richard Biener + + * gcc.dg/gimplefe-36.c: New testcase. + 2019-02-27 Paolo Carlini PR c++/89488 diff --git a/gcc/testsuite/gcc.dg/gimplefe-36.c b/gcc/testsuite/gcc.dg/gimplefe-36.c new file mode 100644 index 00000000000..1c59541fc06 --- /dev/null +++ b/gcc/testsuite/gcc.dg/gimplefe-36.c @@ -0,0 +1,14 @@ +/* { dg-do compile } */ +/* { dg-options "-O -fgimple" } */ + +int foo (void); + +void __GIMPLE (startwith("fre1")) +d () +{ + int _1; + +bb_2: + _1 = foo (); + return; +}