This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/38819] [4.2/4.3/4.4 Regression] trapping expression wrongly hoisted out of loop
- From: "rguenther at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Jan 2009 21:01:35 -0000
- Subject: [Bug tree-optimization/38819] [4.2/4.3/4.4 Regression] trapping expression wrongly hoisted out of loop
- References: <bug-38819-230@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #9 from rguenther at suse dot de 2009-01-16 21:01 -------
Subject: Re: [4.2/4.3/4.4 Regression] trapping
expression wrongly hoisted out of loop
On Fri, 16 Jan 2009, dberlin at dberlin dot org wrote:
> Subject: Re: [4.2/4.3/4.4 Regression] trapping
> expression wrongly hoisted out of loop
>
> Hmmm.
> The only way you could get the CFG to represent that any call may exit
> would be to calls terminate bb's and have an edge from every call to
> exit.
> :(
>
> We actually do this with noreturn edges.
> It's probably a lot easier to just not move trapping expressions for now.
Like all loads from pointers? :/
I'll try to do something slightly more clever.
Richard.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38819