dsp16xx.c (print_operand_address): Fix format specifier warning.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Fri, 16 May 2003 20:57:04 +0000 (20:57 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Fri, 16 May 2003 20:57:04 +0000 (20:57 +0000)
* dsp16xx.c (print_operand_address): Fix format specifier warning.
* dsp16xx.h (INCLUDE_DEFAULTS): Add missing initializers.

From-SVN: r66882

gcc/ChangeLog
gcc/config/dsp16xx/dsp16xx.c
gcc/config/dsp16xx/dsp16xx.h

index ea25e5121b8f16e02a95300e6901c983c062513b..79afd55a55c60cc39c8fed8807a01a6af8258fdb 100644 (file)
@@ -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.
 
index fc15dfa9e6a555dc24c1a8b9b9d0747a21bb9b56..60b8deb46ce846eb8cc0f001422f92032bd7ead7 100644 (file)
@@ -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);
     }
index 353fb71e18ad0d284d1a22b3d24cc08cedd3cb5c..454ea7dbea3dae7b977c11dc9b004fa8a1532ff4 100644 (file)
@@ -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.  */