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 versus cse


On Tue, Nov 19, 2002 at 04:21:29PM +0000, Andrew Haley wrote:
> Consider this code fragment:
> 
> int nn = 0;
> try
> {
>     int tmp = foo->bar;
>     nn = tmp;
> }
> ...
> 
> When using non-call exceptions, this may not be changed to
> 
> int nn = 0;
> try
> {
>     nn = foo->bar;
> }

Huh?

I don't see that these two are going to be any different at all.
The value must be loaded from foo->bar before it can be stored 
in nn.  This is true even if you have mem->mem moves, since the
source might cause a normal page fault as well.

Please explain the problem you're actaully seeing in more detail.


r~


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