public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Manuel López-Ibáñez" <lopezibanez@gmail.com>
To: Mark Mitchell <mark@codesourcery.com>
Cc: gcc-patches@gcc.gnu.org, "Joseph S. Myers" <joseph@codesourcery.com>
Subject: Re: RFA: PATCH: -Wimplicit-double
Date: Fri, 03 Sep 2010 17:45:00 -0000	[thread overview]
Message-ID: <AANLkTimvLBOWm7JYDifNUFtZWFm4rWsoUP5evK8iKDSu@mail.gmail.com> (raw)
In-Reply-To: <4C812DE8.1010602@codesourcery.com>

On 3 September 2010 19:18, Mark Mitchell <mark@codesourcery.com> wrote:
> On 9/3/2010 8:59 AM, Mark Mitchell wrote:
>
>> This patch implements -Wimplicit-double, a new warning.  The goal of
>> the warning is to warn users when a "float" is implicitly converted to
>> a "double".
>
> Joseph asked me off-list to make a couple of low-level corrections:
>
> (a) Use warning_at where possible
> (b) Name the parameter to do_warn_implicit_double "gmsgid" for i18n
>
> Thanks,

This is warned already by Wconversion for both C and C++ and Fortran!
If it doesn't catch all cases, then that should be fixed appropriately
to use existing code as much as possible. And there are testcases
already for this in the testsuite.

The name of the option suggests that existing Wimplicit-int should do
something similar for integers, which is not the case at all. So bad
name. I suggest Wconversion-double or Wdouble-conversion and make this
option enabled by Wconversion  similar to existing option
Wnull-conversion.

So I think this patch is not OK at all.

Cheers,

Manuel.

  reply	other threads:[~2010-09-03 17:43 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-03 16:04 Mark Mitchell
2010-09-03 17:38 ` Mark Mitchell
2010-09-03 17:45   ` Manuel López-Ibáñez [this message]
2010-09-03 17:51     ` Manuel López-Ibáñez
2010-09-03 18:06     ` Mark Mitchell
2010-09-03 19:03       ` Manuel López-Ibáñez
2010-09-03 19:13         ` Mark Mitchell
2010-09-04  8:35           ` Daniel Jacobowitz
2010-09-04 12:47             ` Gabriel Dos Reis
2010-09-05 22:15               ` Mark Mitchell
2010-09-06 17:57                 ` Mark Mitchell
2010-10-17 16:36                   ` [wwwdocs] PATCH for -Wimplicit-double Gerald Pfeifer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AANLkTimvLBOWm7JYDifNUFtZWFm4rWsoUP5evK8iKDSu@mail.gmail.com \
    --to=lopezibanez@gmail.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=joseph@codesourcery.com \
    --cc=mark@codesourcery.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).