summaryrefslogtreecommitdiff
path: root/gcc/config/i386/gas.h
diff options
context:
space:
mode:
authorPaul Eggert <eggert@gnu.org>1993-09-28 00:23:58 +0000
committerPaul Eggert <eggert@gnu.org>1993-09-28 00:23:58 +0000
commit7b1e82724a9f2abc47f52b5898ccd8b02ea2dd30 (patch)
tree83a86d9e83d06424fd2fb415b739788a6e2b6f2d /gcc/config/i386/gas.h
parent73e2c65036612b9886b57d974b49de4507df06db (diff)
downloadgcc-7b1e82724a9f2abc47f52b5898ccd8b02ea2dd30.tar.gz
(ASM_FILE_START): Quote special characters in file names.
From-SVN: r5497
Diffstat (limited to 'gcc/config/i386/gas.h')
-rw-r--r--gcc/config/i386/gas.h16
1 files changed, 4 insertions, 12 deletions
diff --git a/gcc/config/i386/gas.h b/gcc/config/i386/gas.h
index cad9f51e4b5..7dc3da061af 100644
--- a/gcc/config/i386/gas.h
+++ b/gcc/config/i386/gas.h
@@ -93,19 +93,11 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
fprintf ((FILE), "\t.align 2,0x90\n"); /* Use log of 4 as arg. */
#undef ASM_FILE_START
-/* ASM_FILE_START(FILE) used to be defined as:
- fprintf (FILE, "\t.file\t\"%s\"\n", dump_base_name);
- However, the string dump_base_name may contain backslashes. (This may often
- be the case when gcc is run under operating systems such as DOS and OS/2.)
- Each backslash in dump_base_name must be converted to two consecutive
- backslashes on output. */
#define ASM_FILE_START(FILE) \
- { char *p; \
- fprintf (FILE, "\t.file\t\""); \
- for (p = dump_base_name; *p != '\0'; p++) \
- if (*p == '\\') fprintf (FILE, "\\\\"); \
- else fprintf (FILE, "%c", *p); \
- fprintf (FILE, "\"\n"); }
+ do { fprintf (FILE, "\t.file\t"); \
+ output_quoted_string (FILE, dump_base_name); \
+ fprintf (FILE, "\n"); \
+ } while (0)
/* A C statement or statements which output an assembler instruction
opcode to the stdio stream STREAM. The macro-operand PTR is a