public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "daniel.kruegler at googlemail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/65509] [C++11] GCC rejects operator== with two distinct pointers as not constexpr Date: Sun, 22 Mar 2015 10:38:00 -0000 [thread overview] Message-ID: <bug-65509-4-N3Js5aT4sU@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-65509-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65509 Daniel Krügler <daniel.kruegler at googlemail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |daniel.kruegler@googlemail. | |com --- Comment #1 from Daniel Krügler <daniel.kruegler at googlemail dot com> --- I agree that this code should be accepted. Interestingly, the compiler accepts the code when the constexpr specifier of both i1 and i2 is removed. >From gcc-bugs-return-481100-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 22 09:55:15 2015 Return-Path: <gcc-bugs-return-481100-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org> Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 43260 invoked by alias); 22 Mar 2015 09:55:14 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: <gcc-bugs.gcc.gnu.org> List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/> List-Post: <mailto:gcc-bugs@gcc.gnu.org> List-Help: <mailto:gcc-bugs-help@gcc.gnu.org> Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 43221 invoked by uid 48); 22 Mar 2015 09:55:09 -0000 From: "vries at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/65511] transform_to_exit_first_loop looses edge probabilities Date: Sun, 22 Mar 2015 10:44:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: trivial X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: <bug-65511-4-lYpR9jJUBp@http.gcc.gnu.org/bugzilla/> In-Reply-To: <bug-65511-4@http.gcc.gnu.org/bugzilla/> References: <bug-65511-4@http.gcc.gnu.org/bugzilla/> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-03/txt/msg02244.txt.bz2 Content-length: 962 https://gcc.gnu.org/bugzilla/show_bug.cgi?ide511 --- Comment #1 from vries at gcc dot gnu.org --- tentative patch: ... diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c index 0f5e428..837dbbd 100644 --- a/gcc/tree-cfg.c +++ b/gcc/tree-cfg.c @@ -6175,6 +6175,7 @@ gimple_duplicate_sese_tail (edge entry ATTRIBUTE_UNUSED, edge exit ATTRIBUTE_UNU gphi *phi; tree def; struct loop *target, *aloop, *cloop; + int exit_prob = exit->probability; gcc_assert (EDGE_COUNT (exit->src->succs) == 2); exits[0] = exit; @@ -6266,6 +6267,8 @@ gimple_duplicate_sese_tail (edge entry ATTRIBUTE_UNUSED, edge exit ATTRIBUTE_UNU sorig = single_succ_edge (switch_bb); sorig->flags = exits[1]->flags; snew = make_edge (switch_bb, nentry_bb, exits[0]->flags); + snew->probability = exit_prob; + sorig->probability = REG_BR_PROB_BASE - exit_prob; /* Register the new edge from SWITCH_BB in loop exit lists. */ rescan_loop_exit (snew, true, false); ...
next prev parent reply other threads:[~2015-03-22 9:54 UTC|newest] Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top 2015-03-22 9:55 [Bug c++/65509] New: " kariya_mitsuru at hotmail dot com 2015-03-22 10:38 ` daniel.kruegler at googlemail dot com [this message] 2015-03-22 12:55 ` [Bug c++/65509] " mpolacek at gcc dot gnu.org 2015-03-25 8:54 ` [Bug c++/65509] [5 Regression] " mpolacek at gcc dot gnu.org 2015-03-25 9:04 ` jakub at gcc dot gnu.org 2015-03-25 10:07 ` jakub at gcc dot gnu.org 2015-03-25 11:45 ` jakub at gcc dot gnu.org 2015-03-25 12:42 ` daniel.kruegler at googlemail dot com 2015-03-25 14:44 ` mpolacek at gcc dot gnu.org 2015-03-25 15:07 ` mpolacek at gcc dot gnu.org 2015-03-25 15:35 ` jakub at gcc dot gnu.org 2015-03-25 15:39 ` mpolacek at gcc dot gnu.org 2015-03-27 16:37 ` jason at gcc dot gnu.org 2015-03-27 16:54 ` jason at gcc dot gnu.org 2015-03-27 16:54 ` jason at gcc dot gnu.org 2015-03-28 18:24 ` kariya_mitsuru at hotmail dot com 2015-03-28 18:31 ` kariya_mitsuru at hotmail dot com 2015-03-29 19:29 ` jason 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-65509-4-N3Js5aT4sU@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).