mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-24 10:04:27 +08:00
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
This commit is contained in:
parent
099049da9b
commit
21835d9b74
@ -1,3 +1,9 @@
|
||||
2000-05-18 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* 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 <jakub@redhat.com>
|
||||
|
||||
* gcc-common.c (ggc_mark_rtx_children): Mark NOTE_EXPECTED_VALUE
|
||||
|
@ -2261,6 +2261,9 @@ final_scan_insn (insn, file, optimize, prescan, nopeepholes)
|
||||
}
|
||||
break;
|
||||
|
||||
case 0:
|
||||
break;
|
||||
|
||||
default:
|
||||
if (NOTE_LINE_NUMBER (insn) <= 0)
|
||||
abort ();
|
||||
|
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user