aboutsummaryrefslogtreecommitdiff
path: root/gcc/cpplib.c
diff options
context:
space:
mode:
authorPer Bothner <bothner@gcc.gnu.org>1995-05-19 11:19:56 -0700
committerPer Bothner <bothner@gcc.gnu.org>1995-05-19 11:19:56 -0700
commita2baccf6e0d7dbebc60cf2664a86d9be668f1f10 (patch)
treea83f8c5530c0aa2d456b5796bbb62a89f99d5786 /gcc/cpplib.c
parent71f0026ffaec1d5e06e6359bad838ab3086cee8a (diff)
downloadgcc-a2baccf6e0d7dbebc60cf2664a86d9be668f1f10.zip
gcc-a2baccf6e0d7dbebc60cf2664a86d9be668f1f10.tar.gz
gcc-a2baccf6e0d7dbebc60cf2664a86d9be668f1f10.tar.bz2
* cpplib.c (collect_expansion): Don't escape '@' inside string.
From-SVN: r9744
Diffstat (limited to 'gcc/cpplib.c')
-rw-r--r--gcc/cpplib.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/cpplib.c b/gcc/cpplib.c
index 6517deb..989c64d 100644
--- a/gcc/cpplib.c
+++ b/gcc/cpplib.c
@@ -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 '#':