[Bug c/38869] [4.4 Regression] valgrind find problem with -O -mtune=generic

2009-01-23 Thread rguenth at gcc dot gnu dot org


--- Comment #10 from rguenth at gcc dot gnu dot org  2009-01-23 16:18 
---
Fixed.


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED
   Target Milestone|--- |4.4.0


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



[Bug c/38869] [4.4 Regression] valgrind find problem with -O -mtune=generic

2009-01-19 Thread vmakarov at gcc dot gnu dot org


--- Comment #9 from vmakarov at gcc dot gnu dot org  2009-01-19 17:17 
---
Subject: Bug 38869

Author: vmakarov
Date: Mon Jan 19 17:17:14 2009
New Revision: 143498

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=143498
Log:
2009-01-19  Vladimir Makarov  vmaka...@redhat.com

PR c/38869
* rtl.h (reinit_regs): New prototype.
* regclass.c: Include ira.h.
(reinit_regs): New.
* Makefile.in (regclass.o): Add ira.h.
* config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.


Modified:
trunk/gcc/ChangeLog
trunk/gcc/Makefile.in
trunk/gcc/config/i386/i386.c
trunk/gcc/regclass.c
trunk/gcc/rtl.h


-- 


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



[Bug c/38869] [4.4 Regression] valgrind find problem with -O -mtune=generic

2009-01-18 Thread vmakarov at redhat dot com


--- Comment #8 from vmakarov at redhat dot com  2009-01-19 00:37 ---
H.J. is right.  The problem is that IRA does not reinitialize some of its data
after changing ABI.  config/i386/i386.c::ix86_maybe_switch_abi calls only
init_regs (this is the single port which does it).  Function ira_init should be
called too in this case.

I'll send a patch soon.


-- 


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