diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ea25e5121b8..79afd55a55c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ 2003-05-16 Kaveh R. Ghazi + * dsp16xx.c (print_operand_address): Fix format specifier warning. + * dsp16xx.h (INCLUDE_DEFAULTS): Add missing initializers. + * c4x.c (c4x_print_operand, c4x_print_operand_address): Fix format specifier warnings. diff --git a/gcc/config/dsp16xx/dsp16xx.c b/gcc/config/dsp16xx/dsp16xx.c index fc15dfa9e6a..60b8deb46ce 100644 --- a/gcc/config/dsp16xx/dsp16xx.c +++ b/gcc/config/dsp16xx/dsp16xx.c @@ -1938,7 +1938,7 @@ print_operand_address(file, addr) default: if (FITS_5_BITS (addr)) - fprintf (file, "*(0x%x)", (INTVAL (addr) & 0x20)); + fprintf (file, "*(0x%x)", (int)(INTVAL (addr) & 0x20)); else output_addr_const (file, addr); } diff --git a/gcc/config/dsp16xx/dsp16xx.h b/gcc/config/dsp16xx/dsp16xx.h index 353fb71e18a..454ea7dbea3 100644 --- a/gcc/config/dsp16xx/dsp16xx.h +++ b/gcc/config/dsp16xx/dsp16xx.h @@ -130,7 +130,7 @@ extern GTY(()) rtx dsp16xx_lshrhi3_libcall; /* Include path is determined from the environment variable */ #define INCLUDE_DEFAULTS \ { \ - { 0, 0, 0 } \ + { 0, 0, 0, 0, 0 } \ } /* Names to predefine in the preprocessor for this target machine. */