Fix building issues in aarch64 and ppc64le. OBS-URL: https://build.opensuse.org/request/show/926826 OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gcc7?expand=0&rev=215
39 lines
1.1 KiB
Diff
39 lines
1.1 KiB
Diff
From 1b5eac0b3d586f3b51baff5667d903de4a4e06a6 Mon Sep 17 00:00:00 2001
|
|
From: Andrew Pinski <apinski@marvell.com>
|
|
Date: Wed, 22 Jan 2020 23:34:34 +0000
|
|
Subject: [PATCH 16/22] Backport 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.
|
|
|
|
gcc/ChangeLog
|
|
2021-10-07 Giuliano Belinassi <gbelinassi@suse.de>
|
|
|
|
Backport from mainline
|
|
2020-01-22 Andrew Pinski <apinski@marvell.com>
|
|
|
|
* config/arc/arc.c (output_short_suffix): Check insn for nullness.
|
|
---
|
|
gcc/config/arc/arc.c | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
diff --git a/gcc/config/arc/arc.c b/gcc/config/arc/arc.c
|
|
index 92fecad93d9..5e92983929d 100644
|
|
--- a/gcc/config/arc/arc.c
|
|
+++ b/gcc/config/arc/arc.c
|
|
@@ -4195,6 +4195,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))
|
|
{
|
|
--
|
|
2.33.1
|
|
|