diff options
author | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2006-11-23 18:39:32 +0000 |
---|---|---|
committer | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2006-11-23 18:39:32 +0000 |
commit | 05170031abc9baabb16c0f181228bd9343b0bfc4 (patch) | |
tree | 58e110ee1cede177bc7d803aaddb4783e9aa901a /gcc/c.opt | |
parent | 61968738d593d57924732efc7af1aae64bf49355 (diff) | |
download | gcc-05170031abc9baabb16c0f181228bd9343b0bfc4.zip gcc-05170031abc9baabb16c0f181228bd9343b0bfc4.tar.gz gcc-05170031abc9baabb16c0f181228bd9343b0bfc4.tar.bz2 |
re PR c/9072 (-Wconversion should be split into two distinct flags)
2006-11-23 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
PR c/9072
* c.opt (Wtraditional-conversion): New.
(Wconversion): Update description.
* c-typeck.c (convert_arguments): Warnings for prototypes causing
type conversions different from what would happen in the absence
of prototype are now handled by Wtraditional-conversion.
* doc/invoke.texi (Wtraditional-conversion): New.
(Wconversion): Update description.
* doc/trouble.texi (Wconversion): Replace Wconversion by
Wtraditional-conversion.
testsuite/
PR c/9072
* gcc.dg/builtin-protos-1.c: Replace Wconversion by
Wtraditional-conversion.
* gcc.dg/overflow-warn-2.c: Likewise.
* gcc.dg/Wconversion.c: Likewise. Renamed as
Wtraditional-conversion.c .
* gcc.dg/Wconversion-2.c: Likewise. Renamed as
Wtraditional-conversion-2.c .
* gcc.dg/dfp/Wconversion-2.c: Likewise. Renamed as
Wtraditional-conversion-2.c
* gcc.dg/Wconversion-negative-constants.c: New.
From-SVN: r119129
Diffstat (limited to 'gcc/c.opt')
-rw-r--r-- | gcc/c.opt | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -151,7 +151,7 @@ Synonym for -Wcomment Wconversion C ObjC C++ ObjC++ Var(warn_conversion) -Warn about possibly confusing type conversions +Warn for implicit type conversions that may change a value Wctor-dtor-privacy C++ ObjC++ Var(warn_ctor_dtor_privacy) @@ -399,6 +399,10 @@ Wtraditional C ObjC Var(warn_traditional) Warn about features not present in traditional C +Wtraditional-conversion +C ObjC Var(warn_traditional_conversion) +Warn of prototypes causing type conversions different from what would happen in the absence of prototype + Wtrigraphs C ObjC C++ ObjC++ Warn if trigraphs are encountered that might affect the meaning of the program |