public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "jsm28 at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c/54103] [4.7 Regression] ICE at gimplify.c:7790 on current trunk Date: Thu, 20 Sep 2012 20:49:00 -0000 [thread overview] Message-ID: <bug-54103-4-8SmeTv8Hmk@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-54103-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54103 --- Comment #6 from Joseph S. Myers <jsm28 at gcc dot gnu.org> 2012-09-20 20:49:10 UTC --- Author: jsm28 Date: Thu Sep 20 20:49:06 2012 New Revision: 191589 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=191589 Log: PR c/54103 * c-typeck.c (build_unary_op): Pass original argument of TRUTH_NOT_EXPR to c_objc_common_truthvalue_conversion, then remove any C_MAYBE_CONST_EXPR, if it has integer operands. (build_binary_op): Pass original arguments of TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR and TRUTH_XOR_EXPR to c_objc_common_truthvalue_conversion, then remove any C_MAYBE_CONST_EXPR, if they have integer operands. Use c_objc_common_truthvalue_conversion not c_common_truthvalue_conversion. (c_objc_common_truthvalue_conversion): Build NE_EXPR directly and call note_integer_operands for arguments with integer operands that are not integer constants. testsuite: * gcc.c-torture/compile/pr54103-1.c, gcc.c-torture/compile/pr54103-2.c, gcc.c-torture/compile/pr54103-3.c, gcc.c-torture/compile/pr54103-4.c, gcc.c-torture/compile/pr54103-5.c, gcc.c-torture/compile/pr54103-6.c: New tests. * gcc.dg/c90-const-expr-8.c: Update expected column number. Added: branches/gcc-4_7-branch/gcc/testsuite/gcc.c-torture/compile/pr54103-1.c branches/gcc-4_7-branch/gcc/testsuite/gcc.c-torture/compile/pr54103-2.c branches/gcc-4_7-branch/gcc/testsuite/gcc.c-torture/compile/pr54103-3.c branches/gcc-4_7-branch/gcc/testsuite/gcc.c-torture/compile/pr54103-4.c branches/gcc-4_7-branch/gcc/testsuite/gcc.c-torture/compile/pr54103-5.c branches/gcc-4_7-branch/gcc/testsuite/gcc.c-torture/compile/pr54103-6.c Modified: branches/gcc-4_7-branch/gcc/ChangeLog branches/gcc-4_7-branch/gcc/c-typeck.c branches/gcc-4_7-branch/gcc/testsuite/ChangeLog branches/gcc-4_7-branch/gcc/testsuite/gcc.dg/c90-const-expr-8.c
next prev parent reply other threads:[~2012-09-20 20:49 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2012-07-27 8:50 [Bug c/54103] New: " merkil at savhon dot org 2012-09-14 16:59 ` [Bug c/54103] " jsm28 at gcc dot gnu.org 2012-09-14 17:02 ` [Bug c/54103] [4.6/4.7 Regression] " jsm28 at gcc dot gnu.org 2012-09-15 0:28 ` jsm28 at gcc dot gnu.org 2012-09-15 0:31 ` [Bug c/54103] [4.7 " jsm28 at gcc dot gnu.org 2012-09-20 10:28 ` jakub at gcc dot gnu.org 2012-09-20 20:49 ` jsm28 at gcc dot gnu.org [this message] 2012-09-20 20:54 ` jsm28 at gcc dot gnu.org
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-54103-4-8SmeTv8Hmk@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).