This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/12362] Compiler generates incorrect code at -O2
- From: "sean at mcneil dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Sep 2003 14:30:35 -0000
- Subject: [Bug c/12362] Compiler generates incorrect code at -O2
- References: <20030922052942.12362.sean@mcneil.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12362
------- Additional Comments From sean at mcneil dot com 2003-09-22 14:30 -------
Subject: Re: Compiler generates incorrect code at -O2
How can casting a variable to it's own type be an invalid aliasing?
pQHead is of type Q_HEAD *. Please explain how this is aliasing at all.
On Mon, 2003-09-22 at 00:20, rth at redhat dot com wrote:
> PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12362
>
>
>
> ------- Additional Comments From rth at redhat dot com 2003-09-22 07:20 -------
> Subject: Re: New: Compiler generates incorrect code at -O2
>
> On Mon, Sep 22, 2003 at 05:29:44AM -0000, sean at mcneil dot com wrote:
> > (*(((Q_HEAD *)(pQHead))->pQClass->calibrateRtn)) \
>
> Type aliasing bug.
>
>
> r~
>
>
>
>
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.