summaryrefslogtreecommitdiff
path: root/gcc/print-rtl.c
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2000-05-18 19:26:57 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2000-05-18 19:26:57 +0000
commit0e7ebb06661d8b0ab00c16bc347a8b914b539c49 (patch)
tree1d5bfe1f38ef5a58130438ff64a1920ee2f4a73c /gcc/print-rtl.c
parent1374b3a70d7111a6fe555a0dae58a950efbf77ab (diff)
downloadgcc-0e7ebb06661d8b0ab00c16bc347a8b914b539c49.tar.gz
* print-rtl.c (print_rtx): Only print note line number as string
if between NOTE_INSN_BIAS and NOTE_INSN_MAX. * final.c (final_scan_insn): Do nothing for note line number 0. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33997 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/print-rtl.c')
-rw-r--r--gcc/print-rtl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/print-rtl.c b/gcc/print-rtl.c
index d8008380215..5cea980123b 100644
--- a/gcc/print-rtl.c
+++ b/gcc/print-rtl.c
@@ -328,7 +328,8 @@ print_rtx (in_rtx)
/* Print NOTE_INSN names rather than integer codes. */
case 'n':
- if (XINT (in_rtx, i) <= 0)
+ if (XINT (in_rtx, i) >= NOTE_INSN_BIAS
+ && XINT (in_rtx, i) < NOTE_INSN_MAX)
fprintf (outfile, " %s", GET_NOTE_INSN_NAME (XINT (in_rtx, i)));
else
fprintf (outfile, " %d", XINT (in_rtx, i));