diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2018-02-11 15:26:11 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@gcc.gnu.org> | 2018-02-11 15:26:11 +0000 |
commit | e094c0bfe982c21cd39741efde87591b59af8a55 (patch) | |
tree | 65bfd469f2b7a7806341aa9e156d133ff4f0b0f6 /gcc/config/sparc | |
parent | e5a6b70e88b852b5a1932d4cefd619b6d82a02ba (diff) | |
download | gcc-e094c0bfe982c21cd39741efde87591b59af8a55.zip gcc-e094c0bfe982c21cd39741efde87591b59af8a55.tar.gz gcc-e094c0bfe982c21cd39741efde87591b59af8a55.tar.bz2 |
[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
Diffstat (limited to 'gcc/config/sparc')
-rw-r--r-- | gcc/config/sparc/sparc.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c index 48669f1..7126b57 100644 --- a/gcc/config/sparc/sparc.c +++ b/gcc/config/sparc/sparc.c @@ -6422,7 +6422,6 @@ output_return (rtx_insn *insn) { rtx_insn *delay; rtx pat; - int seen; delay = NEXT_INSN (insn); gcc_assert (delay); @@ -6442,7 +6441,7 @@ output_return (rtx_insn *insn) Make sure to output its source location first. */ PATTERN (delay) = gen_blockage (); INSN_CODE (delay) = -1; - final_scan_insn (delay, asm_out_file, optimize, 0, &seen); + final_scan_insn (delay, asm_out_file, optimize, 0, NULL); INSN_LOCATION (delay) = UNKNOWN_LOCATION; output_restore (pat); @@ -6503,7 +6502,6 @@ output_sibcall (rtx_insn *insn, rtx call_operand) { rtx_insn *delay; rtx pat; - int seen; delay = NEXT_INSN (insn); gcc_assert (delay); @@ -6514,7 +6512,7 @@ output_sibcall (rtx_insn *insn, rtx call_operand) Make sure to output its source location first. */ PATTERN (delay) = gen_blockage (); INSN_CODE (delay) = -1; - final_scan_insn (delay, asm_out_file, optimize, 0, &seen); + final_scan_insn (delay, asm_out_file, optimize, 0, NULL); INSN_LOCATION (delay) = UNKNOWN_LOCATION; output_restore (pat); |