diff options
author | Nathan Rossi <nathan@nathanrossi.com> | 2018-01-15 06:02:19 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2018-01-14 23:02:19 -0700 |
commit | aba0d181dc4c96220305b58b049d209e544f0ac4 (patch) | |
tree | 94e213810f9d8cc3ca907ab1e21545a8f150f34e | |
parent | 42d3f20a158916c1a68a8e31639c32b6dd6e2947 (diff) | |
download | gcc-aba0d181dc4c96220305b58b049d209e544f0ac4.zip gcc-aba0d181dc4c96220305b58b049d209e544f0ac4.tar.gz gcc-aba0d181dc4c96220305b58b049d209e544f0ac4.tar.bz2 |
re PR target/83013 (MicroBlaze - #ident - Error: operation combines symbols in different segments)
PR target/83013
* config/microblaze/microblaze.c (microblaze_asm_output_ident):
Use .pushsection/.popsection.
From-SVN: r256681
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/microblaze/microblaze.c | 4 |
2 files changed, 9 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5934cc0..abd0e31 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2018-01-14 Nathan Rossi <nathan@nathanrossi.com> + + PR target/83013 + * config/microblaze/microblaze.c (microblaze_asm_output_ident): + Use .pushsection/.popsection. + 2018-01-14 Martin Sebor <msebor@redhat.com> PR c++/81327 diff --git a/gcc/config/microblaze/microblaze.c b/gcc/config/microblaze/microblaze.c index 51511ca..9a4a287 100644 --- a/gcc/config/microblaze/microblaze.c +++ b/gcc/config/microblaze/microblaze.c @@ -3394,7 +3394,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)); } |