diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-12-10 21:00:34 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-12-10 21:00:34 +0000 |
commit | f952c24cfe7897dea4cc50564ab8f961185e2eb7 (patch) | |
tree | 12aca50e23dc8a8ff96a8df0f2c9ef9b0d51785c /gcc/c-parse.in | |
parent | 3def0eaa8afea0897ad41aefdee058857face0f2 (diff) | |
download | gcc-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.in | 7 |
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 |