This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: An alias bug
- To: hjl at lucon dot org (H.J. Lu)
- Subject: Re: An alias bug
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Mon, 13 Jul 1998 00:08:23 -0600
- cc: davem at dm dot cobaltmicro dot com, egcs-bugs at cygnus dot com, mark at markmitchell dot com
- Reply-To: law at cygnus dot com
In message <m0yvbp5-000266C@ocean.lucon.org>you write:
> > HJ's testcase basically as a useless cast to try and trip the "bug".
> > you can remove the whole ((long_long_type *)&u)->l[1] and replace it
> > with just (u & 0xffffffff). Actually HJ's testcase could just as
> > easily fail with gcc-2.7 since the "bug" it's trying to trigger exists
> > there too.
> >
>
> That is not true. My testcase works with egcs 1.0.3 and gcc 2.7.2.3.
> Mark suggested another patch which fixes it.
It works by accident, not by design.
The testcase is simply wrong and broken. I'm not planning any attempt
to fix it, nor am I likely to approve a patch to fix that test.
jeff