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
This commit is contained in:
Kaveh R. Ghazi 2003-05-30 14:02:48 +00:00 committed by Kaveh Ghazi
parent 3bd4f46089
commit ace49484dd
2 changed files with 13 additions and 7 deletions

View File

@ -1,3 +1,9 @@
2003-05-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* vax.h (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier
warnings.
(PRINT_OPERAND): Likewise.
2003-05-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
* config/mips/mips.h (SUBTARGET_ASM_DEBUGGING_SPEC): Move

View File

@ -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) \