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: [3.3/mainilne] Fix kernel misscopmiilation for hammer


> On Wed, Feb 26, 2003 at 12:06:29PM +0100, Jan Hubicka wrote:
> > The problem is that in one compilation DECL_RTL of global variable got
> > substituted from (mem (symbol_ref xx)) into (mem (reg ax))
> > as it got used in the pattern and reload did decided to do so.
> > Later functions got misscompiled.
> 
> Hum.  Well, if you changed the sharing code properly,
> then unshare_all_rtl should have done the right thing.

I now see that unshare_all_rtl is walking DECL_RTL, but it does not
happen for me.  I believe it is because it does not walk DECL_RTL for
global variables, only for local stack slots and because function uses
the memory just once, it doesn't get unshared.

Honza
> 
> 
> 
> r~


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