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/37609] Pointer arithmetic yields strange result



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


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