This is the mail archive of the gcc-bugs@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]

[Bug c/12362] Compiler generates incorrect code at -O2


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.


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