* cpplib.c (collect_expansion): Don't escape '@' inside string.
authorPer Bothner <bothner@gcc.gnu.org>
Fri, 19 May 1995 18:19:56 +0000 (11:19 -0700)
committerPer Bothner <bothner@gcc.gnu.org>
Fri, 19 May 1995 18:19:56 +0000 (11:19 -0700)
From-SVN: r9744

gcc/cpplib.c

index 6517deb..989c64d 100644 (file)
@@ -1310,7 +1310,10 @@ collect_expansion (pfile, buf, limit, nargs, arglist)
        break;
 
       case '@':
-       *exp_p++ = c;
+       /* An '@' in a string or character constant stands for itself,
+          and does not need to be escaped. */
+       if (!expected_delimiter)
+         *exp_p++ = c;
        break;
 
       case '#':