This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch installed for dsp16xx warnings
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 16 May 2003 16:58:18 -0400 (EDT)
- Subject: Patch installed for dsp16xx warnings
Tested by building cc1 targetted to dsp16xx-unknown-elf.
Installed as "obvious".
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.
diff -rup orig/egcc-CVS20030516/gcc/config/dsp16xx/dsp16xx.c egcc-CVS20030516/gcc/config/dsp16xx/dsp16xx.c
--- orig/egcc-CVS20030516/gcc/config/dsp16xx/dsp16xx.c 2003-03-13 10:00:13.000000000 -0500
+++ egcc-CVS20030516/gcc/config/dsp16xx/dsp16xx.c 2003-05-16 15:20:31.232898956 -0400
@@ -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 -rup orig/egcc-CVS20030516/gcc/config/dsp16xx/dsp16xx.h egcc-CVS20030516/gcc/config/dsp16xx/dsp16xx.h
--- orig/egcc-CVS20030516/gcc/config/dsp16xx/dsp16xx.h 2003-05-12 20:01:53.000000000 -0400
+++ egcc-CVS20030516/gcc/config/dsp16xx/dsp16xx.h 2003-05-16 15:20:15.804243718 -0400
@@ -130,7 +130,7 @@ extern GTY(()) rtx dsp16xx_lshrhi3_libca
/* 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. */