------- Comment #4 from jakub at gcc dot gnu dot org 2010-08-19 13:56 ------- Well, the edge from the block ending with _gfortran_runtime_error_at is an EH edge, not normal edge.
Not sure what exactly Fortran needs -fexceptions for currently, one reason could be pthread_cancel, but at least with OpenMP pthread_cancel isn't going to do very nice things anyway. The two (28) phi args seem to be because the successor block of the empty EH block that is being removed in ehcleanup already had another incoming edge from that block, and ehcleanup doesn't expect that. Not sure if that is a bug from before ehcleanup, or if ehcleanup should test for that case and either disallow the optimization, or resolve it somehow else. -- jakub at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rth at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45172