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 c/19978] overflow in expression of constants should not cause multiple warnings Date: Fri, 05 Jan 2007 21:57:00 -0000 [thread overview] Message-ID: <20070105215712.15631.qmail@sourceware.org> (raw) In-Reply-To: <bug-19978-230@http.gcc.gnu.org/bugzilla/> ------- Comment #6 from manu at gcc dot gnu dot org 2007-01-05 21:57 ------- Subject: Bug 19978 Author: manu Date: Fri Jan 5 21:57:01 2007 New Revision: 120505 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=120505 Log: 2007-01-05 Manuel Lopez-Ibanez <manu@gcc.gnu.org> PR c/19978 * tree.h (TREE_OVERFLOW_P): New. * c-typeck.c (parser_build_unary_op): Warn only if result overflowed and operands did not. (parser_build_binary_op): Likewise. (convert_for_assignment): Remove redundant overflow_warning. * c-common.c (overflow_warning): Don't check or set TREE_OVERFLOW. cp/ * semantics.c (finish_unary_op_expr): Warn only if result overflowed and operands did not. testsuite/ * gcc.dg/multiple-overflow-warn-1.c: New. * gcc.dg/multiple-overflow-warn-2.c: New. * gcc.dg/overflow-warn-6.c: New. * g++.dg/warn/multiple-overflow-warn-1.C: New. Added: trunk/gcc/testsuite/g++.dg/warn/multiple-overflow-warn-1.C trunk/gcc/testsuite/gcc.dg/multiple-overflow-warn-1.c trunk/gcc/testsuite/gcc.dg/multiple-overflow-warn-2.c trunk/gcc/testsuite/gcc.dg/overflow-warn-6.c Modified: trunk/gcc/ChangeLog trunk/gcc/c-common.c trunk/gcc/c-typeck.c trunk/gcc/cp/ChangeLog trunk/gcc/cp/semantics.c trunk/gcc/testsuite/ChangeLog trunk/gcc/tree.h -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19978
next prev parent reply other threads:[~2007-01-05 21:57 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top [not found] <bug-19978-230@http.gcc.gnu.org/bugzilla/> 2006-11-26 19:27 ` manu at gcc dot gnu dot org 2006-12-09 1:10 ` patchapp at dberlin dot org 2007-01-05 21:57 ` manu at gcc dot gnu dot org [this message] 2007-01-06 9:34 ` manu at gcc dot gnu dot org 2007-01-06 15:04 ` schlie at comcast dot net 2005-02-15 22:54 [Bug c/19978] New: " jsm28 at gcc dot gnu dot org 2005-02-16 3:29 ` [Bug c/19978] " pinskia at gcc dot gnu dot org 2005-02-17 14:34 ` pinskia at gcc dot gnu dot org 2005-02-18 11:04 ` schlie at comcast dot net
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=20070105215712.15631.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: linkBe 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).