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:
parent
d92398a203
commit
bb66adcad3
@ -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.
|
||||
|
561
gcc/c-parse.c
561
gcc/c-parse.c
File diff suppressed because it is too large
Load Diff
@ -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
|
||||
|
@ -746,7 +746,10 @@ primary:
|
||||
string:
|
||||
STRING
|
||||
| string STRING
|
||||
{ $$ = chainon ($1, $2); }
|
||||
{ $$ = chainon ($1, $2);
|
||||
if (warn_traditional)
|
||||
warning ("Use of ANSI string concatenation");
|
||||
}
|
||||
;
|
||||
|
||||
|
||||
|
@ -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
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user