From 05170031abc9baabb16c0f181228bd9343b0bfc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20L=C3=B3pez-Ib=C3=A1=C3=B1ez?= Date: Thu, 23 Nov 2006 18:39:32 +0000 Subject: re PR c/9072 (-Wconversion should be split into two distinct flags) 2006-11-23 Manuel Lopez-Ibanez 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 --- gcc/doc/trouble.texi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gcc/doc/trouble.texi') diff --git a/gcc/doc/trouble.texi b/gcc/doc/trouble.texi index c65ad70bebe..505f821d39b 100644 --- a/gcc/doc/trouble.texi +++ b/gcc/doc/trouble.texi @@ -985,10 +985,10 @@ you are removing prototypes that were made with @command{protoize}; if the program worked before without any prototypes, it will work again without them. -@opindex Wconversion +@opindex Wtraditional-conversion You can find all the places where this problem might occur by compiling -the program with the @option{-Wconversion} option. It prints a warning -whenever an argument is converted. +the program with the @option{-Wtraditional-conversion} option. It +prints a warning whenever an argument is converted. @item Both conversion programs can be confused if there are macro calls in and -- cgit v1.2.1