diff options
Diffstat (limited to 'contrib/gcc/config/i386')
-rw-r--r-- | contrib/gcc/config/i386/i386.c | 2 | ||||
-rw-r--r-- | contrib/gcc/config/i386/i386.h | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/contrib/gcc/config/i386/i386.c b/contrib/gcc/config/i386/i386.c index 09c6959..84ce297 100644 --- a/contrib/gcc/config/i386/i386.c +++ b/contrib/gcc/config/i386/i386.c @@ -2451,7 +2451,7 @@ print_operand (file, x, code) REAL_VALUE_FROM_CONST_DOUBLE (r, x); REAL_VALUE_TO_TARGET_SINGLE (r, l); PRINT_IMMED_PREFIX (file); - fprintf (file, "0x%x", l); + fprintf (file, "0x%lx", l); } /* These float cases don't actually occur as immediate operands. */ else if (GET_CODE (x) == CONST_DOUBLE && GET_MODE (x) == DFmode) diff --git a/contrib/gcc/config/i386/i386.h b/contrib/gcc/config/i386/i386.h index efc956a..8abcf87 100644 --- a/contrib/gcc/config/i386/i386.h +++ b/contrib/gcc/config/i386/i386.h @@ -1637,7 +1637,7 @@ number as al, and ax. do { long l[2]; \ REAL_VALUE_TO_TARGET_DOUBLE (VALUE, l); \ if (sizeof (int) == sizeof (long)) \ - fprintf (FILE, "%s 0x%x,0x%x\n", ASM_LONG, l[0], l[1]); \ + fprintf (FILE, "%s 0x%x,0x%x\n", ASM_LONG, (int) l[0], (int) l[1]); \ else \ fprintf (FILE, "%s 0x%lx,0x%lx\n", ASM_LONG, l[0], l[1]); \ } while (0) @@ -1649,7 +1649,8 @@ do { long l[2]; \ do { long l[3]; \ REAL_VALUE_TO_TARGET_LONG_DOUBLE (VALUE, l); \ if (sizeof (int) == sizeof (long)) \ - fprintf (FILE, "%s 0x%x,0x%x,0x%x\n", ASM_LONG, l[0], l[1], l[2]); \ + fprintf (FILE, "%s 0x%x,0x%x,0x%x\n", ASM_LONG, \ + (int) l[0], (int) l[1], (int) l[2]); \ else \ fprintf (FILE, "%s 0x%lx,0x%lx,0x%lx\n", ASM_LONG, l[0], l[1], l[2]); \ } while (0) @@ -1660,7 +1661,7 @@ do { long l[3]; \ do { long l; \ REAL_VALUE_TO_TARGET_SINGLE (VALUE, l); \ if (sizeof (int) == sizeof (long)) \ - fprintf ((FILE), "%s 0x%x\n", ASM_LONG, l); \ + fprintf ((FILE), "%s 0x%x\n", ASM_LONG, (int) l); \ else \ fprintf ((FILE), "%s 0x%lx\n", ASM_LONG, l); \ } while (0) |