summaryrefslogtreecommitdiff
path: root/gcc/c-parse.in
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>1999-12-10 21:00:34 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>1999-12-10 21:00:34 +0000
commitf952c24cfe7897dea4cc50564ab8f961185e2eb7 (patch)
tree12aca50e23dc8a8ff96a8df0f2c9ef9b0d51785c /gcc/c-parse.in
parent3def0eaa8afea0897ad41aefdee058857face0f2 (diff)
downloadgcc-f952c24cfe7897dea4cc50564ab8f961185e2eb7.tar.gz
* c-parse.in (string): With -Wtraditional, warn if ANSI string
concatenation is utilized. * invoke.texi (-Wtraditional): Document it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30863 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-parse.in')
-rw-r--r--gcc/c-parse.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/c-parse.in b/gcc/c-parse.in
index 6811b45b98e..9855cd9f8ec 100644
--- a/gcc/c-parse.in
+++ b/gcc/c-parse.in
@@ -892,7 +892,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