This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Non-call exceptions


On Tue, Nov 19, 2002 at 12:37:36PM -0700, Roger Sayle wrote:
> Even in this case, as explicitly written by the user, we don't want
> data flow analysis to incorrectly conclude that the original value of
> nn is dead after this fragment.  I believe that the real issue is that
> data flow analysis shouldn't assume that "x = may_trap();" kills the
> value of x.

It's not the job of data flow analysis to distinguish this.
It's the job of control flow analysis to build the graph
such that the edge across which the original value of nn is
live is visible.



r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]