diff options
author | Andrew Pinski <pinskia@physics.uc.edu> | 2006-05-20 22:35:02 +0000 |
---|---|---|
committer | Andrew Pinski <pinskia@gcc.gnu.org> | 2006-05-20 15:35:02 -0700 |
commit | 7e2fe9d8a171c50b39b985fb0f9d9721f4f42656 (patch) | |
tree | 9ae8d54e49e1bd1ea366d26f5cfdeb46a7893f20 /gcc/cgraphunit.c | |
parent | 0323103130bfbabe742046a857737ae6bcc5dc4c (diff) | |
download | gcc-7e2fe9d8a171c50b39b985fb0f9d9721f4f42656.zip gcc-7e2fe9d8a171c50b39b985fb0f9d9721f4f42656.tar.gz gcc-7e2fe9d8a171c50b39b985fb0f9d9721f4f42656.tar.bz2 |
re PR middle-end/25776 (ICE in cgraph after error at -O1 and above)
2006-05-20 Andrew Pinski <pinskia@physics.uc.edu>
PR middle-end/25776
* cgraphunit.c (cgraph_optimize): Don't run ipa passes if error
or sorry count is non zero.
2006-05-20 Andrew Pinski <pinskia@physics.uc.edu>
PR middle-end/25776
* g++.dg/other/error11.C: New test.
From-SVN: r113941
Diffstat (limited to 'gcc/cgraphunit.c')
-rw-r--r-- | gcc/cgraphunit.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c index 5ff4fff..44b3d4f 100644 --- a/gcc/cgraphunit.c +++ b/gcc/cgraphunit.c @@ -1410,7 +1410,11 @@ cgraph_optimize (void) fprintf (cgraph_dump_file, "Marked "); dump_cgraph (cgraph_dump_file); } - ipa_passes (); + + /* Don't run the IPA passes if there was any error or sorry messages. */ + if (errorcount == 0 && sorrycount == 0) + ipa_passes (); + /* This pass remove bodies of extern inline functions we never inlined. Do this later so other IPA passes see what is really going on. */ cgraph_remove_unreachable_nodes (false, dump_file); |