Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame^] | 1 | From f17cdebf4e0defaefce927176ddeb9717de073d2 Mon Sep 17 00:00:00 2001 |
| 2 | From: law <law@138bc75d-0d04-0410-961f-82ee72b054a4> |
| 3 | Date: Mon, 15 Jan 2018 06:02:19 +0000 |
| 4 | Subject: [PATCH] PR target/83013 |
| 5 | |
| 6 | * config/microblaze/microblaze.c (microblaze_asm_output_ident): |
| 7 | Use .pushsection/.popsection. |
| 8 | |
| 9 | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@256681 138bc75d-0d04-0410-961f-82ee72b054a4 |
| 10 | Upstream-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 | |
| 15 | diff --git a/gcc/config/microblaze/microblaze.c b/gcc/config/microblaze/microblaze.c |
| 16 | index 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 | -- |
| 31 | 2.15.1 |
| 32 | |