public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c/51730] [4.7 Regression] autoconf 2.60 through 2.67 stdbool.h check fails with GCC 4.7 Date: Mon, 02 Jan 2012 14:16:00 -0000 [thread overview] Message-ID: <bug-51730-4-nvu5MaboOG@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-51730-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51730 --- Comment #4 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-01-02 14:15:39 UTC --- Like Index: gcc/fold-const.c =================================================================== --- gcc/fold-const.c (revision 182784) +++ gcc/fold-const.c (working copy) @@ -8886,6 +8886,13 @@ fold_comparison (location_t loc, enum tr indirect_base0 = true; } offset0 = TREE_OPERAND (arg0, 1); + if (host_integerp (offset0, 1) + && (TREE_INT_CST_LOW (offset0) + & ((unsigned HOST_WIDE_INT)-1 << (HOST_BITS_PER_WIDE_INT - exact_log2 (BITS_PER_UNIT)))) == 0) + { + bitpos0 = TREE_INT_CST_LOW (offset0) * BITS_PER_UNIT; + offset0 = NULL_TREE; + } } base1 = arg1; @@ -8909,6 +8916,13 @@ fold_comparison (location_t loc, enum tr indirect_base1 = true; } offset1 = TREE_OPERAND (arg1, 1); + if (host_integerp (offset1, 1) + && (TREE_INT_CST_LOW (offset1) + & ((unsigned HOST_WIDE_INT)-1 << (HOST_BITS_PER_WIDE_INT - exact_log2 (BITS_PER_UNIT)))) == 0) + { + bitpos1 = TREE_INT_CST_LOW (offset1) * BITS_PER_UNIT; + offset1 = NULL_TREE; + } } /* A local variable can never be pointed to by to be beautified ...
next prev parent reply other threads:[~2012-01-02 14:16 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2012-01-02 12:13 [Bug c/51730] New: " jakub at gcc dot gnu.org 2012-01-02 12:15 ` [Bug c/51730] " jakub at gcc dot gnu.org 2012-01-02 13:03 ` joseph at codesourcery dot com 2012-01-02 14:02 ` rguenth at gcc dot gnu.org 2012-01-02 14:16 ` rguenth at gcc dot gnu.org [this message] 2012-01-03 8:59 ` rguenth at gcc dot gnu.org 2012-01-03 9:01 ` rguenth 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-51730-4-nvu5MaboOG@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).