aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2009-06-02 17:51:00 +0000
committerAlexandre Oliva <aoliva@gcc.gnu.org>2009-06-02 17:51:00 +0000
commit9e74b7d2a46bdb9776d568c51d058b296a2263a8 (patch)
treed5d86e517c4aaf56a1b21099bf52adb620e39eb7
parenta9f6eceee70a3cc8f86196b6d6ef9543ecc61a5e (diff)
downloadgcc-9e74b7d2a46bdb9776d568c51d058b296a2263a8.zip
gcc-9e74b7d2a46bdb9776d568c51d058b296a2263a8.tar.gz
gcc-9e74b7d2a46bdb9776d568c51d058b296a2263a8.tar.bz2
print_rtl (print_rtx): Don't print modes in EXPR_LISTs and INSN_LISTs that are out of the REG_NOTE range.
* print_rtl (print_rtx): Don't print modes in EXPR_LISTs and INSN_LISTs that are out of the REG_NOTE range. From-SVN: r148091
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/print-rtl.c7
2 files changed, 9 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 8e95dfe..a00f194 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
2009-06-02 Alexandre Oliva <aoliva@redhat.com>
+ * print_rtl (print_rtx): Don't print modes in EXPR_LISTs and
+ INSN_LISTs that are out of the REG_NOTE range.
+
+2009-06-02 Alexandre Oliva <aoliva@redhat.com>
+
* loop-unroll.c (struct iv_to_split): Add pointer to next.
(struct var_to_expand): Likewise.
(struct opt_info): Add head and tail for linked lists of the above.
diff --git a/gcc/print-rtl.c b/gcc/print-rtl.c
index e519728..596ac8f 100644
--- a/gcc/print-rtl.c
+++ b/gcc/print-rtl.c
@@ -1,6 +1,6 @@
/* Print RTL for GCC.
Copyright (C) 1987, 1988, 1992, 1997, 1998, 1999, 2000, 2002, 2003,
- 2004, 2005, 2007, 2008
+ 2004, 2005, 2007, 2008, 2009
Free Software Foundation, Inc.
This file is part of GCC.
@@ -204,8 +204,9 @@ print_rtx (const_rtx in_rtx)
fputs ("/i", outfile);
/* Print REG_NOTE names for EXPR_LIST and INSN_LIST. */
- if (GET_CODE (in_rtx) == EXPR_LIST
- || GET_CODE (in_rtx) == INSN_LIST)
+ if ((GET_CODE (in_rtx) == EXPR_LIST
+ || GET_CODE (in_rtx) == INSN_LIST)
+ && (int)GET_MODE (in_rtx) < REG_NOTE_MAX)
fprintf (outfile, ":%s",
GET_REG_NOTE_NAME (GET_MODE (in_rtx)));