public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/54563] [4.7/4.8 Regression] ICE in redirect_eh_edge_1, at tree-eh.c:2215
Date: Fri, 14 Sep 2012 16:18:00 -0000	[thread overview]
Message-ID: <bug-54563-4-NVjgMXvypR@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-54563-4@http.gcc.gnu.org/bugzilla/>

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54563

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at gcc dot gnu.org

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-09-14 16:17:38 UTC ---
I'd say the bug is somewhere on the C++ FE side, this is a
DEF_C99_C90_RES_BUILTIN, in -std=c++03 -O2 we don't ICE on it, but with -O2
(-std=gnu++03 or -std=c++11 or -std=gnu++11) somehow it is marked as builtin,
but doesn't inherit throw () from the builtin.
IMHO that doesn't make sense.  Either it is not builtin and we therefore
shouldn't treat it as such, or it is builtin and then we should know that it
never throws.
Sure, tree-ssa-math-opts.c could have added lots of
maybe_clean_or_replace_eh_stmt and gimple_purge_all_dead_eh_edges calls just in
case or give up optimizing if the calls can throw, but none of those builtins
really ever throw, so my preference would be to fix this there.  Jason?


  parent reply	other threads:[~2012-09-14 16:18 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-13  8:58 [Bug driver/54563] New: [4.7][C++11] MacOS 10.8, " david.abdurachmanov at gmail dot com
2012-09-13  9:27 ` [Bug driver/54563] " rguenth at gcc dot gnu.org
2012-09-13  9:39 ` [Bug middle-end/54563] [4.7/4.8 Regression] " rguenth at gcc dot gnu.org
2012-09-13 12:40 ` hjl.tools at gmail dot com
2012-09-14 15:42 ` jakub at gcc dot gnu.org
2012-09-14 16:18 ` jakub at gcc dot gnu.org [this message]
2012-09-14 18:26 ` wschmidt at gcc dot gnu.org
2012-09-14 18:30 ` jakub at gcc dot gnu.org
2012-09-14 19:10 ` jakub at gcc dot gnu.org
2012-09-17  9:19 ` jakub at gcc dot gnu.org
2012-09-17  9:26 ` [Bug middle-end/54563] [4.7 " jakub at gcc dot gnu.org
2012-09-20 10:26 ` jakub at gcc dot gnu.org
2012-09-20 15:59 ` jakub at gcc dot gnu.org
2013-03-25 13:31 ` 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-54563-4-NVjgMXvypR@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: link
Be 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).