OSDN Git Service

Fix -O0 -fschedule-insns2 ICE.
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 7 Jul 2005 00:10:54 +0000 (00:10 +0000)
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 7 Jul 2005 00:10:54 +0000 (00:10 +0000)
* ia64.c (ia64_reorg): Check optimize before ia64_flag_schedule_isns2.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@101675 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/ia64/ia64.c

index 35c3d21..6a339a4 100644 (file)
@@ -1,3 +1,7 @@
+2005-07-06  James E. Wilson  <wilson@specifixinc.com>
+
+       * ia64.c (ia64_reorg): Check optimize before ia64_flag_schedule_isns2.
+
 2005-07-06  John David Anglin  <dave.anglin@nrc-crnc.gc.ca>
 
        * pa.c (legitimize_pic_address): Use gcc_assert instead of abort.
index 8f28e20..80fcfe3 100644 (file)
@@ -7583,7 +7583,7 @@ ia64_reorg (void)
      non-optimizing bootstrap.  */
   update_life_info (NULL, UPDATE_LIFE_GLOBAL_RM_NOTES, PROP_DEATH_NOTES);
 
-  if (ia64_flag_schedule_insns2)
+  if (optimize && ia64_flag_schedule_insns2)
     {
       timevar_push (TV_SCHED2);
       ia64_final_schedule = 1;