[Bug target/13534] Invalid offset generated for loading 64-bit GPR on PPC64

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Jan 1 00:42:00 GMT 2004


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-01-01 00:42 -------
You are too violating aliasing rules:
(*((double*)((((int*)((___r1)-(1)))+1))));

converted from an int to an pointer and then to a double pointer is violating aliasing rules 
even though you do not access the int pointer, does not matter if ___r1 is allocated from 
malloc or not.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13534



More information about the Gcc-bugs mailing list