]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Use rtl macros for names of NOTEs.
authorMichael Meissner <meissner@cygnus.com>
Fri, 15 Aug 1997 17:48:56 +0000 (17:48 +0000)
committerMichael Meissner <meissner@gcc.gnu.org>
Fri, 15 Aug 1997 17:48:56 +0000 (17:48 +0000)
From-SVN: r14810

gcc/ChangeLog
gcc/haifa-sched.c

index 926bbe5024e8b29996b685ed8abf420c297160bd..7b87f05b3597514243a8e19c1d8c026eb601caa9 100644 (file)
@@ -1,3 +1,9 @@
+Fri Aug 15 13:43:39 1997  Michael Meissner  <meissner@cygnus.com>
+
+       * haifa-sched.c (debug_dependencies): Use GET_NOTE_INSN_NAME to
+       print out the names of the notes.  Print out the name of the insn
+       that is not a note, and not an {,CALL_,JUMP_}INSN.
+
 Wed Aug 13 01:03:37 1997  Doug Evans  <dje@canuck.cygnus.com>
 
        * configure.in (haifa configury): Fix typo.
index ced081416a6c6b444a97eca2ef0942c1be5d1bbe..b8d83ad461231c32845d1efb745f3cd88c9c24f0 100644 (file)
@@ -7374,51 +7374,16 @@ debug_dependencies ()
                  int n;
                  fprintf (dump, ";;   %6d ", INSN_UID (insn));
                  if (GET_CODE (insn) == NOTE)
-                   switch (n = NOTE_LINE_NUMBER (insn))
-                     {
-                     case NOTE_INSN_DELETED:
-                       fprintf (dump, "NOTE_INSN_DELETED");
-                       break;
-                     case NOTE_INSN_BLOCK_BEG:
-                       fprintf (dump, "NOTE_INSN_BLOCK_BEG");
-                       break;
-                     case NOTE_INSN_BLOCK_END:
-                       fprintf (dump, "NOTE_INSN_BLOCK_END");
-                       break;
-                     case NOTE_INSN_LOOP_BEG:
-                       fprintf (dump, "NOTE_INSN_LOOP_BEG");
-                       break;
-                     case NOTE_INSN_LOOP_END:
-                       fprintf (dump, "NOTE_INSN_LOOP_END");
-                       break;
-                     case NOTE_INSN_LOOP_CONT:
-                       fprintf (dump, "NOTE_INSN_LOOP_CONT");
-                       break;
-                     case NOTE_INSN_LOOP_VTOP:
-                       fprintf (dump, "NOTE_INSN_LOOP_VTOP");
-                       break;
-                     case NOTE_INSN_FUNCTION_BEG:
-                       fprintf (dump, "NOTE_INSN_FUNCTION_BEG");
-                       break;
-                     case NOTE_INSN_FUNCTION_END:
-                       fprintf (dump, "NOTE_INSN_FUNCTION_END");
-                       break;
-                     case NOTE_INSN_EH_REGION_BEG:
-                       fprintf (dump, "NOTE_INSN_EH_REGION_BEG");
-                       break;
-                     case NOTE_INSN_EH_REGION_END:
-                       fprintf (dump, "NOTE_INSN_EH_REGION_END");
-                       break;
-                     case NOTE_INSN_SETJMP:
-                       fprintf (dump, "NOTE_INSN_SETJMP");
-                       break;
-                     default:
-                       if (n > 0)
-                         fprintf (dump, "NOTE_LINE_NUMBER %d", n);
-                       else
-                         fprintf (dump, "??? UNRECOGNIZED NOTE %d", n);
-                     }
-                 fprintf (dump, "\n");
+                   {
+                     n = NOTE_LINE_NUMBER (insn);
+                     if (n < 0)
+                       fprintf (dump, "%s\n", GET_NOTE_INSN_NAME (n));
+                     else
+                       fprintf (dump, "line %d, file %s\n", n,
+                                NOTE_SOURCE_FILE (insn));
+                   }
+                 else
+                   fprintf (dump, " {%s}\n", GET_RTX_NAME (insn));
                  continue;
                }