diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2009-06-02 17:51:00 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@gcc.gnu.org> | 2009-06-02 17:51:00 +0000 |
commit | 9e74b7d2a46bdb9776d568c51d058b296a2263a8 (patch) | |
tree | d5d86e517c4aaf56a1b21099bf52adb620e39eb7 | |
parent | a9f6eceee70a3cc8f86196b6d6ef9543ecc61a5e (diff) | |
download | gcc-9e74b7d2a46bdb9776d568c51d058b296a2263a8.tar.gz |
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/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/print-rtl.c | 7 |
2 files changed, 9 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8e95dfefb70..a00f194750c 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 e519728abff..596ac8fda01 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))); |