summaryrefslogtreecommitdiff
path: root/libcpp/macro.c
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2009-09-02 17:35:30 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2009-09-02 17:35:30 +0000
commitfd2ab214c53f39a2fb68d3b394103db62af78c50 (patch)
tree582d9e320bdd5fa506744b2a48b6f499f314d056 /libcpp/macro.c
parentdd3824a300726c9b5f8f83d58ee714f59dc90a16 (diff)
macro.c (stringify_arg): Escape CPP_WCHAR tokens.
libcpp/: * macro.c (stringify_arg): Escape CPP_WCHAR tokens. gcc/testsuite/: * gcc.dg/20090902-1.c: New test. From-SVN: r151343
Diffstat (limited to 'libcpp/macro.c')
-rw-r--r--libcpp/macro.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcpp/macro.c b/libcpp/macro.c
index e051fbc7757..f31805955c6 100644
--- a/libcpp/macro.c
+++ b/libcpp/macro.c
@@ -377,7 +377,7 @@ stringify_arg (cpp_reader *pfile, macro_arg *arg)
}
escape_it = (token->type == CPP_STRING || token->type == CPP_CHAR
- || token->type == CPP_WSTRING || token->type == CPP_STRING
+ || token->type == CPP_WSTRING || token->type == CPP_WCHAR
|| token->type == CPP_STRING32 || token->type == CPP_CHAR32
|| token->type == CPP_STRING16 || token->type == CPP_CHAR16);