summaryrefslogtreecommitdiff
path: root/gcc/c-parse.in
diff options
context:
space:
mode:
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2001-12-11 19:42:34 +0000
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2001-12-11 19:42:34 +0000
commita96b8d2649821430d45535fe1e71e46ee94fe393 (patch)
tree2018e6f82b3ca5d8eb854a0d321eb3e9f7091dea /gcc/c-parse.in
parent88ae7f04397c6b56b0bc6fab5545125f7eef0416 (diff)
downloadgcc-a96b8d2649821430d45535fe1e71e46ee94fe393.tar.gz
* c-common.c (combine_strings): Complain if concatenating
__FUNCTION__. * c-parse.in (yylexname): Flag artificial strings. * tree.h (TREE_ARTIFICIAL_STRING_P): New. doc: * extend.texi: Update. testsuite: * gcc.dg/concat.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47890 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-parse.in')
-rw-r--r--gcc/c-parse.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/c-parse.in b/gcc/c-parse.in
index 1602b9222c1..4967a0939b2 100644
--- a/gcc/c-parse.in
+++ b/gcc/c-parse.in
@@ -3604,6 +3604,7 @@ end ifobjc
const char *name = fname_string (rid_code);
yylval.ttype = build_string (strlen (name) + 1, name);
+ C_ARTIFICIAL_STRING_P (yylval.ttype) = 1;
last_token = CPP_STRING; /* so yyerror won't choke */
return STRING;
}