remove some dead eh code

Richard Henderson rth@redhat.com
Sat Aug 11 13:45:00 GMT 2001


        * rtl.h (REG_EH_RETHROW): Remove.
        * rtl.c (reg_note_name): Update.
        * combine.c (distribute_notes): Don't check for it.

Index: combine.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/combine.c,v
retrieving revision 1.227
diff -c -p -d -r1.227 combine.c
*** combine.c	2001/08/11 20:16:12	1.227
--- combine.c	2001/08/11 20:19:13
*************** distribute_notes (notes, from_insn, i3, 
*** 12008,12014 ****
  	    abort ();
  	  break;
  
- 	case REG_EH_RETHROW:
  	case REG_NORETURN:
  	case REG_SETJMP:
  	  /* These notes must remain with the call.  It should not be
--- 12008,12013 ----
Index: rtl.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/rtl.c,v
retrieving revision 1.96
diff -c -p -d -r1.96 rtl.c
*** rtl.c	2001/08/08 19:07:46	1.96
--- rtl.c	2001/08/11 20:19:14
*************** const char * const reg_note_name[] =
*** 280,286 ****
    "REG_LABEL", "REG_DEP_ANTI", "REG_DEP_OUTPUT", "REG_BR_PROB",
    "REG_EXEC_COUNT", "REG_NOALIAS", "REG_SAVE_AREA", "REG_BR_PRED",
    "REG_FRAME_RELATED_EXPR", "REG_EH_CONTEXT", "REG_EH_REGION",
!   "REG_EH_RETHROW", "REG_SAVE_NOTE", "REG_MAYBE_DEAD", "REG_NORETURN",
    "REG_NON_LOCAL_GOTO", "REG_SETJMP", "REG_ALWAYS_RETURN"
  };
  
--- 280,286 ----
    "REG_LABEL", "REG_DEP_ANTI", "REG_DEP_OUTPUT", "REG_BR_PROB",
    "REG_EXEC_COUNT", "REG_NOALIAS", "REG_SAVE_AREA", "REG_BR_PRED",
    "REG_FRAME_RELATED_EXPR", "REG_EH_CONTEXT", "REG_EH_REGION",
!   "REG_SAVE_NOTE", "REG_MAYBE_DEAD", "REG_NORETURN",
    "REG_NON_LOCAL_GOTO", "REG_SETJMP", "REG_ALWAYS_RETURN"
  };
  
Index: rtl.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/rtl.h,v
retrieving revision 1.285
diff -c -p -d -r1.285 rtl.h
*** rtl.h	2001/08/08 19:07:47	1.285
--- rtl.h	2001/08/11 20:19:14
*************** enum reg_note
*** 543,553 ****
       throw, nor will it execute a non-local goto.  */
    REG_EH_REGION,
  
-   /* Indicates that a call is actually a call to rethrow, and specifies the
-      rethrow symbol for the region the rethrow is targetting.  This provides
-      a way to generate the non standard flow edges required for a rethrow.  */
-   REG_EH_RETHROW,
- 
    /* Used by haifa-sched to save NOTE_INSN notes across scheduling.  */
    REG_SAVE_NOTE,
  
--- 543,548 ----



More information about the Gcc-patches mailing list