c-parse.in (string): With -Wtraditional, warn if ANSI string concatenation is utilized.

* c-parse.in (string): With -Wtraditional, warn if ANSI string
        concatenation is utilized.

        * invoke.texi (-Wtraditional): Document it.

From-SVN: r30863
This commit is contained in:
Kaveh R. Ghazi 1999-12-10 21:00:34 +00:00 committed by Kaveh Ghazi
parent d92398a203
commit bb66adcad3
7 changed files with 711 additions and 688 deletions

View File

@ -1,3 +1,10 @@
1999-12-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* c-parse.in (string): With -Wtraditional, warn if ANSI string
concatenation is utilized.
* invoke.texi (-Wtraditional): Document it.
1999-12-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* flow.c (flow_loops_dump): Avoid ANSI string concatenation.

File diff suppressed because it is too large Load Diff

View File

@ -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

View File

@ -746,7 +746,10 @@ primary:
string:
STRING
| string STRING
{ $$ = chainon ($1, $2); }
{ $$ = chainon ($1, $2);
if (warn_traditional)
warning ("Use of ANSI string concatenation");
}
;

View File

@ -1725,6 +1725,9 @@ The ANSI type of an integer constant has a different width or
signedness from its traditional type. This warning is only issued if
the base of the constant is ten. I.e. hexadecimal or octal values, which
typically represent bit patterns, are not warned about.
@item
Usage of ANSI string concatenation is detected.
@end itemize
@item -Wundef

File diff suppressed because it is too large Load Diff

View File

@ -859,7 +859,8 @@ primary:
string:
STRING
| string STRING
{ $$ = chainon ($1, $2); }
{ $$ = chainon ($1, $2);
}
;
/* Produces an OBJC_STRING_CST with perhaps more OBJC_STRING_CSTs chained