summaryrefslogtreecommitdiff
path: root/gcc/config/i386/gas.h
diff options
context:
space:
mode:
authoreggert <eggert@138bc75d-0d04-0410-961f-82ee72b054a4>1993-09-28 00:23:58 +0000
committereggert <eggert@138bc75d-0d04-0410-961f-82ee72b054a4>1993-09-28 00:23:58 +0000
commita5f6f9df096e71473441ca16478ff4c9f877d4fa (patch)
tree83a86d9e83d06424fd2fb415b739788a6e2b6f2d /gcc/config/i386/gas.h
parent0b23040a48b2251b6e40e2ddf4199499b6ffabad (diff)
downloadgcc-a5f6f9df096e71473441ca16478ff4c9f877d4fa.tar.gz
(ASM_FILE_START): Quote special characters in file names.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@5497 138bc75d-0d04-0410-961f-82ee72b054a4
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