aboutsummaryrefslogtreecommitdiff
path: root/gcc/dwarf2out.c
diff options
context:
space:
mode:
authorGabriel Dos Reis <gdr@codesourcery.com>2002-05-23 23:37:09 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2002-05-23 23:37:09 +0000
commit211a0cbe1392b37ed05c0aa4675756c1209aa81c (patch)
treeeefaec1514eb73c58eef6e91f4c09e4a714d9818 /gcc/dwarf2out.c
parent2f0552b6d023ac38f4a327bab5dd6abcd4b9ca7a (diff)
downloadgcc-211a0cbe1392b37ed05c0aa4675756c1209aa81c.zip
gcc-211a0cbe1392b37ed05c0aa4675756c1209aa81c.tar.gz
gcc-211a0cbe1392b37ed05c0aa4675756c1209aa81c.tar.bz2
mingw32.h (OUTPUT_QUOTED_STRING): Properly output quoted strings.
* config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output quoted strings. * dwarf2out.c (lookup_filename): Properly quote filename in .file directive in assembly file. * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise. * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise. * config/pj/pj.h (ASM_FILE_START): Likewise. * config/rs6000/xcoff.h (ASM_FILE_START): Likewise. * config/avr/avr.c (asm_file_end): Likewise. * toplev.c (output_quoted_string): Handle possibly signed plain char. * toplev.h (output_clean_symbol_name): Declare * toplev.c (output_clean_symbol_name): Define. * config/alpha/alpha.c (unicosmk_output_module_name): Use it. * config/1750a/1750a.h (ASM_FILE_START): Likewise. Co-Authored-By: Zack Weinberg <zack@codesourcery.com> From-SVN: r53817
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r--gcc/dwarf2out.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index 2fa9f64..31daf42 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -11826,7 +11826,11 @@ lookup_filename (file_name)
file_table.last_lookup_index = i;
if (DWARF2_ASM_LINE_DEBUG_INFO)
- fprintf (asm_out_file, "\t.file %u \"%s\"\n", i, file_name);
+ {
+ fprintf (asm_out_file, "\t.file %u ", i);
+ output_quoted_string (asm_out_file, file_name);
+ fputc ('\n', asm_out_file);
+ }
return i;
}