summaryrefslogtreecommitdiff
path: root/gcc/print-rtl.c
diff options
context:
space:
mode:
authoraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2009-06-02 17:51:00 +0000
committeraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2009-06-02 17:51:00 +0000
commitf86c2921a660eb4c634c583119d64680c4d82d62 (patch)
treed5d86e517c4aaf56a1b21099bf52adb620e39eb7 /gcc/print-rtl.c
parentb635a1a3c5aaf58c4823e9395f2410517c7bd1cb (diff)
downloadgcc-f86c2921a660eb4c634c583119d64680c4d82d62.tar.gz
* print_rtl (print_rtx): Don't print modes in EXPR_LISTs and
INSN_LISTs that are out of the REG_NOTE range. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148091 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/print-rtl.c')
-rw-r--r--gcc/print-rtl.c7
1 files changed, 4 insertions, 3 deletions
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)));