diff options
author | Paul Eggert <eggert@gnu.org> | 1993-09-28 00:23:58 +0000 |
---|---|---|
committer | Paul Eggert <eggert@gnu.org> | 1993-09-28 00:23:58 +0000 |
commit | 99107e86f70870bb64f3712ab697aec39aae906b (patch) | |
tree | 15c646305df6593674ed9a710536b1b10f12ea2b | |
parent | f40176b103d16970a6d27e2f77b208055c05f6a6 (diff) | |
download | gcc-99107e86f70870bb64f3712ab697aec39aae906b.zip gcc-99107e86f70870bb64f3712ab697aec39aae906b.tar.gz gcc-99107e86f70870bb64f3712ab697aec39aae906b.tar.bz2 |
(mips_output_filename): Quote special characters in file names.
From-SVN: r5494
-rw-r--r-- | gcc/config/mips/mips.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index dc1c30a..c97e76b 100644 --- a/gcc/config/mips/mips.c +++ b/gcc/config/mips/mips.c @@ -3508,7 +3508,9 @@ mips_output_filename (stream, name) first_time = FALSE; SET_FILE_NUMBER (); current_function_file = name; - fprintf (stream, "\t.file\t%d \"%s\"\n", num_source_filenames, name); + fprintf (stream, "\t.file\t%d ", num_source_filenames); + output_quoted_string (stream, name); + fprintf (stream, "\n"); if (!TARGET_GAS && write_symbols == DBX_DEBUG) fprintf (stream, "\t#@stabs\n"); } @@ -3516,8 +3518,9 @@ mips_output_filename (stream, name) else if (!TARGET_GAS && write_symbols == DBX_DEBUG) { ASM_GENERATE_INTERNAL_LABEL (ltext_label_name, "Ltext", 0); - fprintf (stream, "%s \"%s\",%d,0,0,%s\n", ASM_STABS_OP, - name, N_SOL, <ext_label_name[1]); + fprintf (stream, "%s ", ASM_STABS_OP); + output_quoted_string (stream, name); + fprintf (stream, ",%d,0,0,%s\n", N_SOL, <ext_label_name[1]); } else if (name != current_function_file @@ -3532,15 +3535,17 @@ mips_output_filename (stream, name) warning ("MIPS ECOFF format does not allow changing filenames within functions with #line"); } - fprintf (stream, "\t#.file\t%d \"%s\"\n", num_source_filenames, name); + fprintf (stream, "\t#.file\t%d ", num_source_filenames); } else { SET_FILE_NUMBER (); current_function_file = name; - fprintf (stream, "\t.file\t%d \"%s\"\n", num_source_filenames, name); + fprintf (stream, "\t.file\t%d ", num_source_filenames); } + output_quoted_string (stream, name); + fprintf (stream, "\n"); } } |