aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog3
-rw-r--r--gcc/config/dsp16xx/dsp16xx.c2
-rw-r--r--gcc/config/dsp16xx/dsp16xx.h2
3 files changed, 5 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index ea25e51..79afd55 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,8 @@
2003-05-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+ * 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 fc15dfa..60b8deb 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 353fb71..454ea7d 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. */