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:
Jakub Jelinek 2000-05-18 21:26:57 +02:00 committed by Jakub Jelinek
parent 099049da9b
commit 21835d9b74
3 changed files with 11 additions and 1 deletions

View File

@ -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

View File

@ -2261,6 +2261,9 @@ final_scan_insn (insn, file, optimize, prescan, nopeepholes)
}
break;
case 0:
break;
default:
if (NOTE_LINE_NUMBER (insn) <= 0)
abort ();

View File

@ -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));