]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/config/arc/arc.c
Fix patchable-function-entry on arc
authorAndrew Pinski <apinski@marvell.com>
Wed, 22 Jan 2020 23:34:34 +0000 (23:34 +0000)
committerAndrew Pinski <apinski@marvell.com>
Thu, 23 Jan 2020 01:23:28 +0000 (01:23 +0000)
commit41fe06f89f96c5f9599855a2778c8a3dd7efe22d
treef4bfdd4c7bd7297409a1799ceaeeaf361eeff55c
parent83b0448980f894b527ed8df588a0ae12510f06d5
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.
gcc/ChangeLog
gcc/config/arc/arc.c