public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "ian at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/50012] [4.5/4.6/4.7 Regression] C++ front end misses -Wsign-compare warnings when extraneous parentheses are present Date: Sat, 14 Jan 2012 00:26:00 -0000 [thread overview] Message-ID: <bug-50012-4-6lf2jUWaar@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-50012-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50012 --- Comment #8 from ian at gcc dot gnu.org <ian at gcc dot gnu.org> 2012-01-14 00:22:21 UTC --- Author: ian Date: Sat Jan 14 00:22:14 2012 New Revision: 183178 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=183178 Log: gcc/: PR c++/50012 * tree.h (TYPE_QUALS): Add cast to int. (TYPE_QUALS_NO_ADDR_SPACE): Likewise. gcc/cp: PR c++/50012 * typeck.c (enum_cast_to_int): New static function. (cp_build_binary_op): When handling warn_sign_compare, don't test for TREE_NO_WARNING. Do call enum_cast_to_int. * call.c (avoid_sign_compare_warnings): Remove static function. (build_new_op_1): Don't call avoid_sign_compare_warnings. gcc/testsuite/: PR c++/50012 * g++.dg/warn/Wsign-compare-4.C: New. Added: trunk/gcc/testsuite/g++.dg/warn/Wsign-compare-4.C Modified: trunk/gcc/ChangeLog trunk/gcc/cp/ChangeLog trunk/gcc/cp/call.c trunk/gcc/cp/typeck.c trunk/gcc/testsuite/ChangeLog trunk/gcc/tree.h
next prev parent reply other threads:[~2012-01-14 0:23 UTC|newest] Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top 2011-08-07 11:22 [Bug c++/50012] New: " mikpe at it dot uu.se 2011-08-07 19:52 ` [Bug c++/50012] " mikpe at it dot uu.se 2011-08-08 10:09 ` [Bug c++/50012] [4.5/4.6/4.7 Regression] " rguenth at gcc dot gnu.org 2011-08-14 12:43 ` mikpe at it dot uu.se 2011-08-19 7:34 ` jakub at gcc dot gnu.org 2011-10-10 12:19 ` rguenth at gcc dot gnu.org 2011-12-19 15:00 ` jakub at gcc dot gnu.org 2012-01-05 17:43 ` jakub at gcc dot gnu.org 2012-01-07 1:32 ` ian at airs dot com 2012-01-14 0:26 ` ian at gcc dot gnu.org [this message] 2012-01-14 0:27 ` [Bug c++/50012] [4.5/4.6 " ian at airs dot com 2012-07-02 12:07 ` rguenth at gcc dot gnu.org 2012-11-13 11:24 ` [Bug c++/50012] [4.6 " paolo.carlini at oracle 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=bug-50012-4-6lf2jUWaar@http.gcc.gnu.org/bugzilla/ \ --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).