summaryrefslogtreecommitdiff
path: root/gcc/passes.c
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2008-11-03 08:42:10 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2008-11-03 08:42:10 +0000
commitd885a4124af916b6d2bf545b122d3821fbc50cd6 (patch)
tree6cfca7decb04676c872e4d2f6605ee5a4ece9d84 /gcc/passes.c
parent55c4c509aba509ddc1cf71db3e7d4ba8e41faca9 (diff)
downloadgcc-d885a4124af916b6d2bf545b122d3821fbc50cd6.tar.gz
PR middle-end/37858
* passes.c (execute_one_pass): Don't look at cfun->curr_properties for ipa and simple ipa passes. * gcc.dg/pr37858.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@141545 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/passes.c')
-rw-r--r--gcc/passes.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/passes.c b/gcc/passes.c
index 69d484b0226..1332e0bbeef 100644
--- a/gcc/passes.c
+++ b/gcc/passes.c
@@ -1289,6 +1289,7 @@ execute_one_pass (struct opt_pass *pass)
if (initializing_dump
&& dump_file
&& graph_dump_format != no_graph
+ && cfun
&& (cfun->curr_properties & (PROP_cfg | PROP_rtl))
== (PROP_cfg | PROP_rtl))
{