diff options
author | Zack Weinberg <zack@gcc.gnu.org> | 2004-09-21 20:34:43 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2004-09-21 20:34:43 +0000 |
commit | 52c5701b4e38801ed913c8d65a154c99da34181c (patch) | |
tree | 5732b65d4f290578782bc61fdb3bd2b831e92877 /gcc/print-rtl.c | |
parent | 938806922d7f2bc14ccfb8a87aed2af4de529236 (diff) | |
download | gcc-52c5701b4e38801ed913c8d65a154c99da34181c.zip gcc-52c5701b4e38801ed913c8d65a154c99da34181c.tar.gz gcc-52c5701b4e38801ed913c8d65a154c99da34181c.tar.bz2 |
reg-notes.def (REG_DEP_TRUE): New entry, place first so it gets value 0.
* 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
Diffstat (limited to 'gcc/print-rtl.c')
-rw-r--r-- | gcc/print-rtl.c | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/gcc/print-rtl.c b/gcc/print-rtl.c index 0683159..b4b2ca3 100644 --- a/gcc/print-rtl.c +++ b/gcc/print-rtl.c @@ -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))); } } |