[Bug c/12362] Compiler generates incorrect code at -O2
sean at mcneil dot com
gcc-bugzilla@gcc.gnu.org
Mon Sep 22 14:42:00 GMT 2003
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.
More information about the Gcc-bugs
mailing list