This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix PR45949


We already don't run small IPA passes if there are errors.  Don't
run regular IPA passes if there were errors from small IPA passes
either.

Bootstrap & regtest on x86_64-unknown-linux-gnu, pending.  Will
apply if that succeeds.

Richard.

2010-11-29  Richard Guenther  <rguenther@suse.de>

	PR lto/45949
	* cgraphunit.c (ipa_passes): Stop after errors from
	small IPA passes.

Index: gcc/cgraphunit.c
===================================================================
*** gcc/cgraphunit.c	(revision 167235)
--- gcc/cgraphunit.c	(working copy)
*************** ipa_passes (void)
*** 1707,1713 ****
    invoke_plugin_callbacks (PLUGIN_ALL_IPA_PASSES_START, NULL);
  
    if (!in_lto_p)
!     execute_ipa_pass_list (all_small_ipa_passes);
  
    /* If pass_all_early_optimizations was not scheduled, the state of
       the cgraph will not be properly updated.  Update it now.  */
--- 1707,1717 ----
    invoke_plugin_callbacks (PLUGIN_ALL_IPA_PASSES_START, NULL);
  
    if (!in_lto_p)
!     {
!       execute_ipa_pass_list (all_small_ipa_passes);
!       if (seen_error ())
! 	return;
!     }
  
    /* If pass_all_early_optimizations was not scheduled, the state of
       the cgraph will not be properly updated.  Update it now.  */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]