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 target/13534] Invalid offset generated for loading 64-bit GPR on PPC64


------- 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


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