This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/37609] Pointer arithmetic yields strange result
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Sep 2008 16:29:39 -0000
- Subject: [Bug target/37609] Pointer arithmetic yields strange result
- References: <bug-37609-8983@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from rguenth at gcc dot gnu dot org 2008-09-21 16:29 -------
Confirmed. This looks like a target issue to me, for bad we produce
testPtrBad:
pushl %ebp
movl %esp, %ebp
movl 8(%ebp), %eax
addl $127, %eax
subl 12(%ebp), %eax
popl %ebp
sarl %eax
imull $954437177, %eax, %eax
ret
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |uros at gcc dot gnu dot org
Status|UNCONFIRMED |NEW
Component|c |target
Ever Confirmed|0 |1
Keywords| |wrong-code
Known to fail| |3.3.6 4.3.2
Last reconfirmed|0000-00-00 00:00:00 |2008-09-21 16:29:39
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37609