]> gcc.gnu.org Git - gcc.git/commitdiff
reg-notes.def (REG_DEP_TRUE): New entry, place first so it gets value 0.
authorZack Weinberg <zack@gcc.gnu.org>
Tue, 21 Sep 2004 20:34:43 +0000 (20:34 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Tue, 21 Sep 2004 20:34:43 +0000 (20:34 +0000)
* reg-notes.def (REG_DEP_TRUE): New entry, place first so it
gets value 0.
* print-rtl.c (print_rtx): Print the name of a REG_NOTE even
if it has value 0.

From-SVN: r87821

gcc/ChangeLog
gcc/print-rtl.c
gcc/reg-notes.def

index 7d034c47903be413126ea11a5ff89b30c2b04c45..fd4e6526db458f74f93c7e200709535a2d273182 100644 (file)
@@ -1,5 +1,12 @@
+2004-09-21  Zack Weinberg  <zack@codesourcery.com>
+
+       * reg-notes.def (REG_DEP_TRUE): New entry, place first so it
+       gets value 0.
+       * print-rtl.c (print_rtx): Print the name of a REG_NOTE even
+       if it has value 0.
+
 2004-09-21  Daniel Berlin <dberlin@dberlin.org>
-       
+
        * c-typeck.c (build_function_call): Give name of object
        we are attempting to call in error message.
        * c-objc-common.c (c_tree_printer): Call pp_expression,
@@ -30,7 +37,7 @@
        precedence of stripped constant.
 
 2004-09-20 Jeff Law  <law@redhat.com>
-           Jan Hubicka  <jh@suse.cz>
+          Jan Hubicka  <jh@suse.cz>
 
        * tree-ssanames.c (make_ssa_name): No longer need to clear, then
        initialize key elements here.
index 0683159629216474cf719deab1c3590fcf7dbb27..b4b2ca36fb5191acd84e742fc2c4bc3978447905 100644 (file)
@@ -186,16 +186,15 @@ print_rtx (rtx in_rtx)
          if (RTX_FLAG (in_rtx, return_val))
            fputs ("/i", outfile);
 
-         if (GET_MODE (in_rtx) != VOIDmode)
-           {
-             /* Print REG_NOTE names for EXPR_LIST and INSN_LIST.  */
-             if (GET_CODE (in_rtx) == EXPR_LIST
-                 || GET_CODE (in_rtx) == INSN_LIST)
-               fprintf (outfile, ":%s",
-                        GET_REG_NOTE_NAME (GET_MODE (in_rtx)));
-             else
-               fprintf (outfile, ":%s", GET_MODE_NAME (GET_MODE (in_rtx)));
-           }
+         /* Print REG_NOTE names for EXPR_LIST and INSN_LIST.  */
+         if (GET_CODE (in_rtx) == EXPR_LIST
+             || GET_CODE (in_rtx) == INSN_LIST)
+           fprintf (outfile, ":%s",
+                    GET_REG_NOTE_NAME (GET_MODE (in_rtx)));
+
+         /* For other rtl, print the mode if it's not VOID.  */
+         else if (GET_MODE (in_rtx) != VOIDmode)
+           fprintf (outfile, ":%s", GET_MODE_NAME (GET_MODE (in_rtx)));
        }
     }
 
index 8032516bef6245f2d7dedec3380a9a8afee76d65..85a122f65328c7759d1b8ea48fb057446d4c5c73 100644 (file)
@@ -26,6 +26,12 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
 /* Shorthand.  */
 #define REG_NOTE(NAME) DEF_REG_NOTE (REG_##NAME)
 
+/* REG_DEP_TRUE is used in LOG_LINKS to represent a read-after-write
+   dependency (i.e. a true data dependency).  This is here, not
+   grouped with REG_DEP_ANTI and REG_DEP_OUTPUT, because some passes
+   use a literal 0 for it.  */
+REG_NOTE (DEP_TRUE)
+
 /* The value in REG dies in this insn (i.e., it is not needed past
    this insn).  If REG is set in this insn, the REG_DEAD note may,
    but need not, be omitted.  */
@@ -92,9 +98,7 @@ REG_NOTE (CC_USER)
 REG_NOTE (LABEL)
 
 /* REG_DEP_ANTI and REG_DEP_OUTPUT are used in LOG_LINKS to represent
-   write-after-read and write-after-write dependencies respectively.
-   Data dependencies, which are the only type of LOG_LINK created by
-   flow, are represented by a 0 reg note kind.  */
+   write-after-read and write-after-write dependencies respectively.  */
 REG_NOTE (DEP_ANTI)
 REG_NOTE (DEP_OUTPUT)
 
This page took 0.07757 seconds and 5 git commands to generate.