public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "manu at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug other/23572] No warning for assigning a value to a 'float' variable that overflows with option -Wextra
Date: Thu, 22 Mar 2007 23:04:00 -0000	[thread overview]
Message-ID: <20070322230442.25564.qmail@sourceware.org> (raw)
In-Reply-To: <bug-23572-11241@http.gcc.gnu.org/bugzilla/>



------- Comment #11 from manu at gcc dot gnu dot org  2007-03-22 23:04 -------
Subject: Bug 23572

Author: manu
Date: Thu Mar 22 23:04:24 2007
New Revision: 123137

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=123137
Log:
2007-03-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>

        PR other/23572
        * c-lex.c (interpret_float): On overflow, emit pedantic warning if
        infinities not supported, otherwise emit warning if -Woverflow. On
        underflow, emit warning if -Woverflow.
        * real.c (real_from_string): Return -1 if underflow, +1 if overflow
        and 0 otherwise.
        * real.h (real_from_string): Update declaration
testsuite/
        * gcc.dg/float-range-4.c: New.
        * gcc.dg/float-range-1.c: Update. Test for a warning.
        * gcc.dg/float-range-3.c: New.
        * gcc.dg/float-range-5.c: New.

Added:
    trunk/gcc/testsuite/gcc.dg/float-range-3.c
    trunk/gcc/testsuite/gcc.dg/float-range-4.c
    trunk/gcc/testsuite/gcc.dg/float-range-5.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/c-lex.c
    trunk/gcc/real.c
    trunk/gcc/real.h
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.dg/float-range-1.c


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23572


  parent reply	other threads:[~2007-03-22 23:04 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <bug-23572-11241@http.gcc.gnu.org/bugzilla/>
2006-11-25 15:24 ` manu at gcc dot gnu dot org
2007-01-09 15:09 ` manu at gcc dot gnu dot org
2007-01-21 16:01 ` patchapp at dberlin dot org
2007-01-22 17:05 ` manu at gcc dot gnu dot org
2007-03-14 18:15 ` patchapp at dberlin dot org
2007-03-21 21:05 ` patchapp at dberlin dot org
2007-03-22 23:04 ` manu at gcc dot gnu dot org [this message]
2007-03-22 23:12 ` manu at gcc dot gnu dot org
2007-04-05 23:58 ` pinskia at gcc dot gnu dot org
2007-04-06 11:25 ` manu at gcc dot gnu dot org
2007-04-06 18:58 ` danglin at gcc dot gnu dot org
2005-08-26  7:56 [Bug other/23572] New: " qiyaoltc at cn dot ibm dot com
2005-08-26 12:53 ` [Bug other/23572] " pinskia at gcc dot gnu dot org
2005-08-29  3:10 ` qiyaoltc at cn dot ibm dot com
2005-08-29  3:35 ` pinskia at gcc dot gnu dot org
2005-08-29  5:18 ` qiyaoltc at cn dot ibm dot com

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=20070322230442.25564.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /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).