[Bug optimization/8035] [ppc] optimizing access to a const member causes illegal code to be generated

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Aug 11 15:05: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=8035



------- Additional Comments From pinskia at gcc dot gnu dot org  2003-08-11 15:05 -------
set_new(p, *powner);  <-- powner is zero at the point which it is called so it is calling
parray.set_new(__GetX1(), (const Owner &)*(const Owner *)0); because GCC is prograting the 
constant and inlining set and check_owner.  The code generated is still right.



More information about the Gcc-bugs mailing list