Commit 21835d9b by Jakub Jelinek Committed by Jakub Jelinek

print-rtl.c (print_rtx): Only print note line number as string if between…

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
parent 099049da
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
from NOTE_INSN_EXPECTED_VALUE notes and NOTE_SOURCE_FILE from
NOTE_INSN_DELETED_LABEL.
......
......@@ -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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment