aboutsummaryrefslogtreecommitdiff
path: root/gcc/dwarf2asm.c
diff options
context:
space:
mode:
authorDavid Edelsohn <dje.gcc@gmail.com>2017-07-25 13:11:37 +0000
committerDavid Edelsohn <dje@gcc.gnu.org>2017-07-25 09:11:37 -0400
commit7e78cfda8219a0e7d95232e15fe49cb4de620134 (patch)
tree55d38cf00f94d63fa90cc7d180e0710b5cf31aa8 /gcc/dwarf2asm.c
parent8595f67be2d1f44102a345f21d28b4836ad47349 (diff)
downloadgcc-7e78cfda8219a0e7d95232e15fe49cb4de620134.zip
gcc-7e78cfda8219a0e7d95232e15fe49cb4de620134.tar.gz
gcc-7e78cfda8219a0e7d95232e15fe49cb4de620134.tar.bz2
dwarf2asm.c (dw2_asm_output_nstring): Encode double quote character for AIX.
* dwarf2asm.c (dw2_asm_output_nstring): Encode double quote character for AIX. * dwarf2out.c (output_macinfo): Copy debug_line_section_label to dl_section_ref. On AIX, append an expression to subtract the size of the section length to dl_section_ref. From-SVN: r250516
Diffstat (limited to 'gcc/dwarf2asm.c')
-rw-r--r--gcc/dwarf2asm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/dwarf2asm.c b/gcc/dwarf2asm.c
index 3f42040..8e3e86f 100644
--- a/gcc/dwarf2asm.c
+++ b/gcc/dwarf2asm.c
@@ -345,7 +345,9 @@ dw2_asm_output_nstring (const char *str, size_t orig_len,
for (i = 0; i < len; i++)
{
int c = str[i];
- if (c == '\"' || c == '\\')
+ if (c == '\"')
+ fputc (XCOFF_DEBUGGING_INFO ? '\"' : '\\', asm_out_file);
+ else if (c == '\\')
fputc ('\\', asm_out_file);
if (ISPRINT (c))
fputc (c, asm_out_file);