OSDN Git Service

(DBX_OUTPUT_MAIN_SOURCE_DIRECTORY, DBX_OUTPUT_MAIN_SOURCE_FILENAME):
authoreggert <eggert@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 28 Sep 1993 00:23:58 +0000 (00:23 +0000)
committereggert <eggert@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 28 Sep 1993 00:23:58 +0000 (00:23 +0000)
Quote special characters in file names.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@5496 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/config/i860/fx2800.h

index b296e18..942dc3d 100644 (file)
@@ -176,14 +176,17 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #endif
 
 #define DBX_OUTPUT_MAIN_SOURCE_FILENAME(file,name)             \
-       fprintf (file, ".stab \"%s\",.Ltext0,0x%x,0,0\n",       \
-               name, N_SO);                                    \
+       fprintf (file, ".stab ");                               \
+       output_quoted_string (file, name);                      \
+       fprintf (file, ",.Ltext0,0x%x,0,0\n", N_SO);            \
        text_section ();                                        \
        ASM_OUTPUT_INTERNAL_LABEL (file, "Ltext", 0)
 
 #define DBX_OUTPUT_SOURCE_FILENAME(file,name)                  \
-       fprintf (file, ".stab \"%s\",.Ltext0,0x%x,0,0\n",       \
-               name, N_SOL);
+  do { fprintf (file, ".stab ");                               \
+       output_quoted_string (file, name);                      \
+       fprintf (file, ",.Ltext0,0x%x,0,0\n", N_SOL);           \
+  } while (0)
 
 #define DBX_OUTPUT_CONSTANT_SYMBOL(file,name,ival)             \
        fprintf (file, ".stab \"%s:c=i%d\",0,0x%x,0,0\n",       \