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 middle-end/25248] [4.1/4.2 Regression] 2.6.15-rc4 arch/powerpc/mm/hash_utils_64.c miscompiled



------- Comment #9 from bergner at vnet dot ibm dot com  2005-12-06 06:26 -------
Created an attachment (id=10414)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10414&action=view)
Minimal test case.

Here's a minimal test case.  This works with older gcc's and without
optimization on newer gcc's (.

bergner@vervain:~/PR25248> gcc3.3.3 -m64 -O1 hash_utils_64.c
bergner@vervain:~/PR25248> ./a.out
addr = 0x0000000000001000
bergner@vervain:~/PR25248> gcc4.1 -m64 -O0 hash_utils_64.c
bergner@vervain:~/PR25248> ./a.out
addr = 0x0000000000001000
bergner@vervain:~/PR25248> gcc41 -m64 -O1 hash_utils_64.c
bergner@vervain:~/PR25248> ./a.out
addr = 0x4000000000001000


-- 


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


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