aboutsummaryrefslogtreecommitdiff
path: root/gcc/print-rtl.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2000-05-18 21:26:57 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2000-05-18 21:26:57 +0200
commit21835d9b748ef5ba14a7a3211396f5f6513d34ac (patch)
tree1d5bfe1f38ef5a58130438ff64a1920ee2f4a73c /gcc/print-rtl.c
parent099049da9b2347df704c4221855ff64d08432bca (diff)
downloadgcc-21835d9b748ef5ba14a7a3211396f5f6513d34ac.zip
gcc-21835d9b748ef5ba14a7a3211396f5f6513d34ac.tar.gz
gcc-21835d9b748ef5ba14a7a3211396f5f6513d34ac.tar.bz2
print-rtl.c (print_rtx): Only print note line number as string if between NOTE_INSN_BIAS and NOTE_INSN_MAX.
* 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. From-SVN: r33997
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 d800838..5cea980 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));