re PR middle-end/37858 (ICE when "-fdump-ipa-all -dv" is used)

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.

From-SVN: r141545
This commit is contained in:
Jakub Jelinek 2008-11-03 09:42:10 +01:00 committed by Jakub Jelinek
parent 0ee1b105a3
commit 6f1fe305cc
4 changed files with 23 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2008-11-03 Jakub Jelinek <jakub@redhat.com>
PR middle-end/37858
* passes.c (execute_one_pass): Don't look at cfun->curr_properties
for ipa and simple ipa passes.
2008-11-02 Richard Guenther <rguenther@suse.de>
PR tree-optimization/37542

View File

@ -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))
{

View File

@ -1,3 +1,8 @@
2008-11-03 Jakub Jelinek <jakub@redhat.com>
PR middle-end/37858
* gcc.dg/pr37858.c: New test.
2008-11-03 Tobias Burnus <burnus@net-b.de>
PR fortran/37821

View File

@ -0,0 +1,11 @@
/* PR middle-end/37858 */
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-ipa-early_local_cleanups -dv" } */
int
main (void)
{
return 0;
}
/* { dg-final { cleanup-ipa-dump "early_local_cleanups" } } */