From: Jakub Jelinek Date: Thu, 18 May 2000 19:26:57 +0000 (+0200) Subject: print-rtl.c (print_rtx): Only print note line number as string if between NOTE_INSN_B... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=21835d9b748ef5ba14a7a3211396f5f6513d34ac;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 81ffafbc43d..b9a786c5157 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2000-05-18 Jakub Jelinek + + * 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. + 2000-05-18 Jakub Jelinek * gcc-common.c (ggc_mark_rtx_children): Mark NOTE_EXPECTED_VALUE diff --git a/gcc/final.c b/gcc/final.c index 02dc418a35f..2145f99b708 100644 --- a/gcc/final.c +++ b/gcc/final.c @@ -2261,6 +2261,9 @@ final_scan_insn (insn, file, optimize, prescan, nopeepholes) } break; + case 0: + break; + default: if (NOTE_LINE_NUMBER (insn) <= 0) abort (); 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));