blob: 42bfd3c146121ff469310ddbd1938bc7b88407ab [file] [log] [blame]
Brad Bishop286d45c2018-10-02 15:21:57 -04001From f17cdebf4e0defaefce927176ddeb9717de073d2 Mon Sep 17 00:00:00 2001
2From: law <law@138bc75d-0d04-0410-961f-82ee72b054a4>
3Date: Mon, 15 Jan 2018 06:02:19 +0000
4Subject: [PATCH] PR target/83013
5
6 * config/microblaze/microblaze.c (microblaze_asm_output_ident):
7 Use .pushsection/.popsection.
8
9git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@256681 138bc75d-0d04-0410-961f-82ee72b054a4
10Upstream-Status: Backport [backport from trunk pre-release v8]
11---
12 gcc/config/microblaze/microblaze.c | 4 +++-
13 1 file changed, 3 insertions(+), 1 deletion(-)
14
15diff --git a/gcc/config/microblaze/microblaze.c b/gcc/config/microblaze/microblaze.c
16index d0f86fd460..a98aca1235 100644
17--- a/gcc/config/microblaze/microblaze.c
18+++ b/gcc/config/microblaze/microblaze.c
19@@ -3371,7 +3371,9 @@ microblaze_asm_output_ident (const char *string)
20 else
21 section_asm_op = READONLY_DATA_SECTION_ASM_OP;
22
23- buf = ACONCAT ((section_asm_op, "\n\t.ascii \"", string, "\\0\"\n", NULL));
24+ buf = ACONCAT (("\t.pushsection", section_asm_op,
25+ "\n\t.ascii \"", string, "\\0\"\n",
26+ "\t.popsection\n", NULL));
27 symtab->finalize_toplevel_asm (build_string (strlen (buf), buf));
28 }
29
30--
312.15.1
32