summaryrefslogtreecommitdiff
path: root/gnu/egcs/gcc
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>1999-12-15 16:46:30 +0000
committerMarc Espie <espie@cvs.openbsd.org>1999-12-15 16:46:30 +0000
commita2c40f8012540fb7557ae20582e26e1824d53d38 (patch)
tree9c3e9406e9b8bec9d1805525f0a93e17fbb72245 /gnu/egcs/gcc
parentcfd41de5add80002d3c9bd01d5b05838e06f9f93 (diff)
From gcc development sources:
if -Wtraditional, warn about ANSI cpp string concatenation.
Diffstat (limited to 'gnu/egcs/gcc')
-rw-r--r--gnu/egcs/gcc/c-parse.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/gnu/egcs/gcc/c-parse.in b/gnu/egcs/gcc/c-parse.in
index 6757c4d464a..faf5ff71c3b 100644
--- a/gnu/egcs/gcc/c-parse.in
+++ b/gnu/egcs/gcc/c-parse.in
@@ -894,7 +894,12 @@ end ifobjc
string:
STRING
| string STRING
- { $$ = chainon ($1, $2); }
+ { $$ = chainon ($1, $2);
+ifc
+ if (warn_traditional)
+ warning ("Use of ANSI string concatenation");
+end ifc
+ }
;
ifobjc