[LVU] deal with md final_scan_insn
authorAlexandre Oliva <aoliva@redhat.com>
Sun, 11 Feb 2018 15:26:11 +0000 (15:26 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Sun, 11 Feb 2018 15:26:11 +0000 (15:26 +0000)
commite094c0bfe982c21cd39741efde87591b59af8a55
tree65bfd469f2b7a7806341aa9e156d133ff4f0b0f6
parente5a6b70e88b852b5a1932d4cefd619b6d82a02ba
[LVU] deal with md final_scan_insn

Ports call final_scan_insn with seen == NULL, and then
maybe_output_next_view crashes because it assumes it's
non-NULL.  Oops.  Fixed.

for  gcc/ChangeLog

* final.c (final_scan_insn_1): Renamed from...
(final_scan_insn): ... this.  New wrapper, to recover
seen from the outermost call in recursive ones.
* config/sparc/sparc.c (output_return): Drop seen from call.
(output_sibcall): Likewise.
* config/visium/visium.c (output_branch): Likewise.

From-SVN: r257562
gcc/ChangeLog
gcc/config/sparc/sparc.c
gcc/config/visium/visium.c
gcc/final.c