blob: 42bfd3c146121ff469310ddbd1938bc7b88407ab [file] [log] [blame]
From f17cdebf4e0defaefce927176ddeb9717de073d2 Mon Sep 17 00:00:00 2001
From: law <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Mon, 15 Jan 2018 06:02:19 +0000
Subject: [PATCH] PR target/83013
* config/microblaze/microblaze.c (microblaze_asm_output_ident):
Use .pushsection/.popsection.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@256681 138bc75d-0d04-0410-961f-82ee72b054a4
Upstream-Status: Backport [backport from trunk pre-release v8]
---
gcc/config/microblaze/microblaze.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/gcc/config/microblaze/microblaze.c b/gcc/config/microblaze/microblaze.c
index d0f86fd460..a98aca1235 100644
--- a/gcc/config/microblaze/microblaze.c
+++ b/gcc/config/microblaze/microblaze.c
@@ -3371,7 +3371,9 @@ microblaze_asm_output_ident (const char *string)
else
section_asm_op = READONLY_DATA_SECTION_ASM_OP;
- buf = ACONCAT ((section_asm_op, "\n\t.ascii \"", string, "\\0\"\n", NULL));
+ buf = ACONCAT (("\t.pushsection", section_asm_op,
+ "\n\t.ascii \"", string, "\\0\"\n",
+ "\t.popsection\n", NULL));
symtab->finalize_toplevel_asm (build_string (strlen (buf), buf));
}
--
2.15.1