]> gcc.gnu.org Git - gcc.git/commitdiff
rtl.c: Use NOTE_INSN_REPEATED_LINE_NUMBER and NOTE_INSN_RANGE_BEG.
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>
Fri, 21 Apr 2000 19:32:10 +0000 (19:32 +0000)
committerRichard Kenner <kenner@gcc.gnu.org>
Fri, 21 Apr 2000 19:32:10 +0000 (15:32 -0400)
* rtl.c: Use NOTE_INSN_REPEATED_LINE_NUMBER and NOTE_INSN_RANGE_BEG.
* rtl.h: Likewise.
* rtl.def: Update comment.
* function.c (expand_function): Use NOTE_INSN_REPEATED_LINE_NUMBER.
* integrate.c (expand_inline_function): Likewise.
* profile.c (branch_prob): Likewise.
* ggc-common.c (ggc_mark_rtx_children): Use NOTE_INSN_RANGE_BEG.
* print-rtl.c (print_rtx): Likewise.
* haifa-sched.c (sched_analyze, unlink_other_notes): Likewise.
(reemit_notes): Likewise; also use enum insn_note.

From-SVN: r33314

gcc/ChangeLog
gcc/function.c
gcc/ggc-common.c
gcc/haifa-sched.c
gcc/integrate.c
gcc/print-rtl.c
gcc/profile.c
gcc/rtl.c
gcc/rtl.def
gcc/rtl.h

index ce2ea3a6e00db1c7f27c26489b79860285b1d682..de5297968aabb6f9177f0fa536885fdcbae03e90 100644 (file)
@@ -1,5 +1,16 @@
 Fri Apr 21 13:30:26 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
 
+       * rtl.c: Use NOTE_INSN_REPEATED_LINE_NUMBER and NOTE_INSN_RANGE_BEG.
+       * rtl.h: Likewise.
+       * rtl.def: Update comment.
+       * function.c (expand_function): Use NOTE_INSN_REPEATED_LINE_NUMBER.
+       * integrate.c (expand_inline_function): Likewise.
+       * profile.c (branch_prob): Likewise.
+       * ggc-common.c (ggc_mark_rtx_children): Use NOTE_INSN_RANGE_BEG.
+       * print-rtl.c (print_rtx): Likewise.
+       * haifa-sched.c (sched_analyze, unlink_other_notes): Likewise.
+       (reemit_notes): Likewise; also use enum insn_note.
+
        * stor-layout.c (layout_decl): Only set DECL_MODE if not already set.
        (place_field): Properly compute know and actual alignment.
 
index b502ab41f58ae0a5afaa56d0512924b0beceea1a..5aee650fce20f8483696a5996393d645ccfc1bbd 100644 (file)
@@ -6533,7 +6533,7 @@ expand_function_end (filename, line, end_bindings)
      already exists a copy of this note somewhere above.  This line number
      note is still needed for debugging though, so we can't delete it.  */
   if (flag_test_coverage)
-    emit_note (NULL_PTR, NOTE_REPEATED_LINE_NUMBER);
+    emit_note (NULL_PTR, NOTE_INSN_REPEATED_LINE_NUMBER);
 
   /* Output a linenumber for the end of the function.
      SDB depends on this.  */
index 9fafd22204e99ef74f942e02deb5f2a6dc67d2ce..2dca6aa9413812a0070431b718a63003c266b64c 100644 (file)
@@ -244,7 +244,7 @@ ggc_mark_rtx_children (r)
        case NOTE:
          switch (NOTE_LINE_NUMBER (r))
            {
-           case NOTE_INSN_RANGE_START:
+           case NOTE_INSN_RANGE_BEG:
            case NOTE_INSN_RANGE_END:
            case NOTE_INSN_LIVE:
              ggc_mark_rtx (NOTE_RANGE_INFO (r));
index 4e6da394f45c4d158428a01c873ee371ea2807ec..3feecdd4631c4944e70fa75f7e633873c0a7ef4a 100644 (file)
@@ -3939,7 +3939,7 @@ sched_analyze (deps, head, tail)
         ??? Actually, the reemit_notes just say what is done, not why.  */
 
       else if (GET_CODE (insn) == NOTE
-              && (NOTE_LINE_NUMBER (insn) == NOTE_INSN_RANGE_START
+              && (NOTE_LINE_NUMBER (insn) == NOTE_INSN_RANGE_BEG
                   || NOTE_LINE_NUMBER (insn) == NOTE_INSN_RANGE_END))
        {
          loop_notes = alloc_EXPR_LIST (REG_SAVE_NOTE, NOTE_RANGE_INFO (insn),
@@ -4277,7 +4277,7 @@ unlink_other_notes (insn, tail)
       if (NOTE_LINE_NUMBER (insn) != NOTE_INSN_SETJMP
          && NOTE_LINE_NUMBER (insn) != NOTE_INSN_LOOP_BEG
          && NOTE_LINE_NUMBER (insn) != NOTE_INSN_LOOP_END
-         && NOTE_LINE_NUMBER (insn) != NOTE_INSN_RANGE_START
+         && NOTE_LINE_NUMBER (insn) != NOTE_INSN_RANGE_BEG
          && NOTE_LINE_NUMBER (insn) != NOTE_INSN_RANGE_END
          && NOTE_LINE_NUMBER (insn) != NOTE_INSN_EH_REGION_BEG
          && NOTE_LINE_NUMBER (insn) != NOTE_INSN_EH_REGION_END)
@@ -5632,7 +5632,8 @@ reemit_notes (insn, last)
     {
       if (REG_NOTE_KIND (note) == REG_SAVE_NOTE)
        {
-         int note_type = INTVAL (XEXP (note, 0));
+         enum insn_note note_type = INTVAL (XEXP (note, 0));
+
          if (note_type == NOTE_INSN_SETJMP)
            {
              retval = emit_note_after (NOTE_INSN_SETJMP, insn);
@@ -5640,7 +5641,7 @@ reemit_notes (insn, last)
              remove_note (insn, note);
              note = XEXP (note, 1);
            }
-         else if (note_type == NOTE_INSN_RANGE_START
+         else if (note_type == NOTE_INSN_RANGE_BEG
                    || note_type == NOTE_INSN_RANGE_END)
            {
              last = emit_note_before (note_type, last);
index 38dca61528d2d38abb5259eb52d6495cde986610..cfcee1b09a865c9b8c0fa8310e7701e9fbe07a67 100644 (file)
@@ -1156,7 +1156,7 @@ expand_inline_function (fndecl, parms, target, ignore, type,
      This line number note is still needed for debugging though, so we can't
      delete it.  */
   if (flag_test_coverage)
-    emit_note (0, NOTE_REPEATED_LINE_NUMBER);
+    emit_note (0, NOTE_INSN_REPEATED_LINE_NUMBER);
 
   emit_line_note (input_filename, lineno);
 
index 8b7bebeb6f666d2c4fa9f6923c045f7df2dea085..140ac36bdb74a3a0f9b703f4857c8f895b462244 100644 (file)
@@ -184,7 +184,7 @@ print_rtx (in_rtx)
                sawclose = 1;
                break;
 
-             case NOTE_INSN_RANGE_START:
+             case NOTE_INSN_RANGE_BEG:
              case NOTE_INSN_RANGE_END:
              case NOTE_INSN_LIVE:
                indent += 2;
index 27f72fa1788a3fc67c368eb2b642f9c254e6991d..d8e2d62e62a8ad8b177275a2d66d0ea18f87a046 100644 (file)
@@ -819,7 +819,7 @@ branch_prob (f, dump_file)
            /* Must ignore the line number notes that immediately follow the
               end of an inline function to avoid counting it twice.  There
               is a note before the call, and one after the call.  */
-           if (NOTE_LINE_NUMBER (insn) == NOTE_REPEATED_LINE_NUMBER)
+           if (NOTE_LINE_NUMBER (insn) == NOTE_INSN_REPEATED_LINE_NUMBER)
              ignore_next_note = 1;
            else if (NOTE_LINE_NUMBER (insn) > 0)
              {
index 80929e5032e7700cbcda442391f7fcf7fc22a3ba..84a2df0e20aa3545e7f994d0bea740ecf2af6529 100644 (file)
--- a/gcc/rtl.c
+++ b/gcc/rtl.c
@@ -245,7 +245,7 @@ const char * const note_insn_name[NOTE_INSN_MAX - NOTE_INSN_BIAS] =
   "NOTE_INSN_PROLOGUE_END", "NOTE_INSN_EPILOGUE_BEG",
   "NOTE_INSN_DELETED_LABEL", "NOTE_INSN_FUNCTION_BEG",
   "NOTE_INSN_EH_REGION_BEG", "NOTE_INSN_EH_REGION_END",
-  "NOTE_REPEATED_LINE_NUMBER", "NOTE_INSN_RANGE_START",
+  "NOTE_INSN_REPEATED_LINE_NUMBER", "NOTE_INSN_RANGE_BEG",
   "NOTE_INSN_RANGE_END", "NOTE_INSN_LIVE",
   "NOTE_INSN_BASIC_BLOCK", "NOTE_INSN_EXPECTED_VALUE"
 };
index 58d24e9af3b857a215c61e394bec8c7f09771e4d..30c5518e4df5bc5f8103ce15e65c5cc24c8bf24a 100644 (file)
@@ -818,7 +818,7 @@ DEF_RTL_EXPR(HIGH, "high", "e", 'o')
    of a constant expression.  */
 DEF_RTL_EXPR(LO_SUM, "lo_sum", "ee", 'o')
 
-/* Header for range information.  Operand 0 is the NOTE_INSN_RANGE_START insn.
+/* Header for range information.  Operand 0 is the NOTE_INSN_RANGE_BEG insn.
    Operand 1 is the NOTE_INSN_RANGE_END insn.  Operand 2 is a vector of all of
    the registers that can be substituted within this range.  Operand 3 is the
    number of calls in the range.  Operand 4 is the number of insns in the
index 5a1221e0cdaa83f3ae1d058ce9ab2d9b4074f816..2997238c798ec4a69a520dcd2a0e77f6036200c4 100644 (file)
--- a/gcc/rtl.h
+++ b/gcc/rtl.h
@@ -636,11 +636,11 @@ enum insn_note
   /* Generated whenever a duplicate line number note is output.  For example,
      one is output after the end of an inline function, in order to prevent
      the line containing the inline call from being counted twice in gcov. */
-  NOTE_REPEATED_LINE_NUMBER,
+  NOTE_INSN_REPEATED_LINE_NUMBER,
 
   /* Start/end of a live range region, where pseudos allocated on the stack
      can be allocated to temporary registers.  Uses NOTE_RANGE_INFO.  */
-  NOTE_INSN_RANGE_START,
+  NOTE_INSN_RANGE_BEG,
   NOTE_INSN_RANGE_END,
 
   /* Record which registers are currently live.  Uses NOTE_LIVE_INFO.  */
This page took 0.115505 seconds and 5 git commands to generate.