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/28196] miscompiled initialization of a constant pointer reference with offset (ppc64 target)



------- Comment #1 from inbox at b-q-c dot com  2006-06-28 20:44 -------
Created an attachment (id=11774)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11774&action=view)
test case - returns 0 on success or 1 when miscompiled

gcc -m64 -o gcc64bug gcc64bug.c

Inspection of the a and b will show:
a = 1fe8
b = 100001fe0


-- 


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


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