arc.c (arc_output_function_prologue, [...]): Fix format specifier warnings.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Fri, 16 May 2003 22:46:41 +0000 (22:46 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Fri, 16 May 2003 22:46:41 +0000 (22:46 +0000)
* arc.c (arc_output_function_prologue,
arc_output_function_epilogue): Fix format specifier warnings.
* arc.h (LARGE_INT): Fix signed/unsigned warnings.

From-SVN: r66891

gcc/ChangeLog
gcc/config/arc/arc.c
gcc/config/arc/arc.h

index 90edd040233f33092faa25ed1c4bd08914616913..467b162124769f9cf6e0fd667303133b2e9ff3a1 100644 (file)
@@ -1,5 +1,9 @@
 2003-05-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
+       * arc.c (arc_output_function_prologue,
+       arc_output_function_epilogue): Fix format specifier warnings.
+       * arc.h (LARGE_INT): Fix signed/unsigned warnings.      
+
        * v850.c (print_operand): Fix format specifier warnings.
 
        * ns32k.c (ADJSP, ns32k_output_function_prologue): Fix format
index faf8c1be051aef4d00108b893994ca2c13832557..7673f6f4ccc7882abac236e8b99408814b8f8da0 100644 (file)
@@ -1263,7 +1263,7 @@ arc_output_function_prologue (file, size)
 
   /* Allocate the stack frame.  */
   if (size - current_frame_info.pretend_size > 0)
-    fprintf (file, "\tsub %s,%s,%d\n",
+    fprintf (file, "\tsub %s,%s," HOST_WIDE_INT_PRINT_DEC "\n",
             sp_str, sp_str, size - current_frame_info.pretend_size);
 
   /* Save any needed call-saved regs (and call-used if this is an
@@ -1425,7 +1425,7 @@ arc_output_function_epilogue (file, size)
        {
          if (!SMALL_INT (size - restored))
            abort ();
-         fprintf (file, "\tadd %s,%s,%d\n",
+         fprintf (file, "\tadd %s,%s," HOST_WIDE_INT_PRINT_DEC "\n",
                   sp_str, sp_str, size - restored);
        }
       else
index 62c221dd8633b3b82970fa868b6aa87dcc4ae93b..9744015657fe82c5074d5543ac8aa6b922076683 100644 (file)
@@ -493,7 +493,7 @@ extern enum reg_class arc_regno_reg_class[FIRST_PSEUDO_REGISTER];
 /* local to this file */
 #define LARGE_INT(X) \
 ((X) >= (-(HOST_WIDE_INT) 0x7fffffff - 1) \
- && (X) <= (unsigned HOST_WIDE_INT) 0xffffffff)
+ && (unsigned HOST_WIDE_INT)(X) <= (unsigned HOST_WIDE_INT) 0xffffffff)
 
 #define CONST_OK_FOR_LETTER_P(VALUE, C) \
 ((C) == 'I' ? SMALL_INT (VALUE)                \