This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/25248] [4.1/4.2 Regression] 2.6.15-rc4 arch/powerpc/mm/hash_utils_64.c miscompiled
- From: "bergner at vnet dot ibm dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Dec 2005 13:40:03 -0000
- Subject: [Bug middle-end/25248] [4.1/4.2 Regression] 2.6.15-rc4 arch/powerpc/mm/hash_utils_64.c miscompiled
- References: <bug-25248-1216@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #14 from bergner at vnet dot ibm dot com 2005-12-06 13:40 -------
sizeof(unsigned long) and sizeof(unsigned long long) are both 8 bytes on ppc64.
Olaf, -O1 isn't a workaround, it's the minimum optimization level that still
shows the bug. Trying some -fno-* options, using -fno-tree-loop-optimize makes
the problem go away at least on the test case:
bergner@vervain:~/PR25248> gcc4.1 -m64 -O2 -fno-tree-loop-optimize
hash_utils_64.c
bergner@vervain:~/PR25248> ./a.out
addr = 0x0000000000001000
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25248