Fix patchable-function-entry on arc
The problem here is arc looks at current_output_insn unconditional but sometimes current_output_insn is NULL. With patchable-function-entry, it will be. This is similar to how the nios2, handles "%.". Committed as obvious after a simple test with -fpatchable-function-entry=1. ChangeLog: * config/arc/arc.c (output_short_suffix): Check insn for nullness.
This commit is contained in:
parent
83b0448980
commit
41fe06f89f
2 changed files with 6 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
2020-01-22 Andrew Pinski <apinski@marvell.com>
|
||||
|
||||
* config/arc/arc.c (output_short_suffix): Check insn for nullness.
|
||||
|
||||
2020-01-22 David Malcolm <dmalcolm@redhat.com>
|
||||
|
||||
PR analyzer/93307
|
||||
|
|
|
@ -5537,6 +5537,8 @@ static void
|
|||
output_short_suffix (FILE *file)
|
||||
{
|
||||
rtx_insn *insn = current_output_insn;
|
||||
if (!insn)
|
||||
return;
|
||||
|
||||
if (arc_verify_short (insn, cfun->machine->unalign, 1))
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue