diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2003-05-30 14:02:48 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2003-05-30 14:02:48 +0000 |
commit | ace49484dd9263719a43ddff5cb356048f0800c0 (patch) | |
tree | 21e1cfd4bf0ca2471c0327ff430bf5e27cb44653 /gcc/config/vax/vax.h | |
parent | 3bd4f460899946ebee93cc35e1ddd6ca7d2cc143 (diff) | |
download | gcc-ace49484dd9263719a43ddff5cb356048f0800c0.tar.gz |
vax.h (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier warnings.
* vax.h (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier
warnings.
(PRINT_OPERAND): Likewise.
From-SVN: r67243
Diffstat (limited to 'gcc/config/vax/vax.h')
-rw-r--r-- | gcc/config/vax/vax.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gcc/config/vax/vax.h b/gcc/config/vax/vax.h index f0c118ae88e..731a8bdc05b 100644 --- a/gcc/config/vax/vax.h +++ b/gcc/config/vax/vax.h @@ -1019,7 +1019,7 @@ enum reg_class { NO_REGS, ALL_REGS, LIM_REG_CLASSES }; This is suitable for output with `assemble_name'. */ #define ASM_GENERATE_INTERNAL_LABEL(LABEL,PREFIX,NUM) \ - sprintf (LABEL, "*%s%d", PREFIX, NUM) + sprintf (LABEL, "*%s%ld", PREFIX, (long)(NUM)) /* This is how to output an insn to push a register on the stack. It need not be very fast code. */ @@ -1138,20 +1138,20 @@ VAX operand formatting codes: else if (CODE == 'D' && GET_CODE (X) == CONST_INT && INTVAL (X) < 0) \ fprintf (FILE, "$0xffffffff%08x", INTVAL (X)); \ else if (CODE == 'P' && GET_CODE (X) == CONST_INT) \ - fprintf (FILE, "$%d", INTVAL (X) + 1); \ + fprintf (FILE, "$" HOST_WIDE_INT_PRINT_DEC, INTVAL (X) + 1); \ else if (CODE == 'N' && GET_CODE (X) == CONST_INT) \ - fprintf (FILE, "$%d", ~ INTVAL (X)); \ + fprintf (FILE, "$" HOST_WIDE_INT_PRINT_DEC, ~ INTVAL (X)); \ /* rotl instruction cannot deal with negative arguments. */ \ else if (CODE == 'R' && GET_CODE (X) == CONST_INT) \ - fprintf (FILE, "$%d", 32 - INTVAL (X)); \ + fprintf (FILE, "$" HOST_WIDE_INT_PRINT_DEC, 32 - INTVAL (X)); \ else if (CODE == 'H' && GET_CODE (X) == CONST_INT) \ - fprintf (FILE, "$%d", 0xffff & ~ INTVAL (X)); \ + fprintf (FILE, "$%d", (int) (0xffff & ~ INTVAL (X))); \ else if (CODE == 'h' && GET_CODE (X) == CONST_INT) \ fprintf (FILE, "$%d", (short) - INTVAL (x)); \ else if (CODE == 'B' && GET_CODE (X) == CONST_INT) \ - fprintf (FILE, "$%d", 0xff & ~ INTVAL (X)); \ + fprintf (FILE, "$%d", (int) (0xff & ~ INTVAL (X))); \ else if (CODE == 'b' && GET_CODE (X) == CONST_INT) \ - fprintf (FILE, "$%d", 0xff & - INTVAL (X)); \ + fprintf (FILE, "$%d", (int) (0xff & - INTVAL (X))); \ else if (CODE == 'M' && GET_CODE (X) == CONST_INT) \ fprintf (FILE, "$%d", ~((1 << INTVAL (x)) - 1)); \ else if (GET_CODE (X) == REG) \ |