[Bug target/12676] New: m68k.c LP64 bug

matt at 3am-software dot com gcc-bugzilla@gcc.gnu.org
Sun Oct 19 01:43:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: m68k.c LP64 bug
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: matt at 3am-software dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: alpha--netbsd
  GCC host triplet: alpha--netbsd
GCC target triplet: m68k--netbsdelf

Index: m68k.c
The following diff fixes a LP64 bug.

===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/m68k/m68k.c,v
retrieving revision 1.111
diff -u -r1.111 m68k.c
--- m68k.c      13 Oct 2003 21:16:28 -0000      1.111
+++ m68k.c      19 Oct 2003 01:15:51 -0000
@@ -2467,7 +2467,7 @@
       /* These insns can result from reloads to access
         stack slots over 64k from the frame pointer.  */
       if (GET_CODE (operands[2]) == CONST_INT
-         && INTVAL (operands[2]) + 0x8000 >= (unsigned) 0x10000)
+         && INTVAL (operands[2]) + 0x8000 >= (unsigned HOST_WIDE_INT) 0x10000)
         return "move%.l %2,%0\n\tadd%.l %1,%0";
 #ifdef SGS
       if (GET_CODE (operands[2]) == REG)



More information about the Gcc-bugs mailing list