This is the mail archive of the gcc@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: GCC silently miscompiling code on x86


On Thu, Aug 29, 2002 at 12:04:43PM -0700, Richard Henderson wrote:
> On Fri, Aug 23, 2002 at 08:54:00AM +1000, Greg Schafer wrote:
> > This is very bad for i686. Many continue to get hit by this. H J Lu has
> > proposed some patches but they remain unreviewed. Could somebody kindly
> > take a look at these and get this sorted?
> 
> As far as I can tell, HJ's patch doesn't work.  Certainly
> it didn't change the output for the given test case at all.

That was not my experience at all. HJ's patch here:-

http://gcc.gnu.org/ml/gcc-patches/2002-08/msg01401.html

fixed 20020412-1.c for me. And this one:-

http://gcc.gnu.org/ml/gcc-patches/2002-08/msg01170.html

fixes the test case in GNATS PR 7591.

I am compiling everything at -march=i686

> I have a different patch that I started some time ago before I
> left on vacation that fixes this bug, as well as the variable
> sized structure copy bug as seen in execute/20020412-1.c.

Ok, cool, I would love to test it out. Is it ready for consumption?

Greg


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