Warnings fixes, committed

Zack Weinberg zack@wolery.cumb.org
Mon Apr 3 16:24:00 GMT 2000


I've committed this part of yesterday's warning grab-bag under the
obvious fix rule.

zw

	* bb-reorder.c (verify_insn_chain): #ifdef out unless ENABLE_CHECKING.
	* i386.h (FUNCTION_ARG_REGNO_P): Remove unnecessary test for N >= 0.
	* i386.md (call_value, call_value_pop): Remove unused variable 'addr'.

===================================================================
Index: bb-reorder.c
--- bb-reorder.c	2000/03/25 02:39:03	1.3
+++ bb-reorder.c	2000/04/03 23:21:43
@@ -123,9 +123,10 @@ static basic_block get_common_dest	PARAM
 static basic_block chain_reorder_blocks	PARAMS ((edge, basic_block));
 static void make_reorder_chain		PARAMS ((basic_block));
 static void fixup_reorder_chain		PARAMS ((void));
+#ifdef ENABLE_CHECKING
 static void verify_insn_chain		PARAMS ((void));
+#endif
 
-
 /* Skip over insns BEFORE or AFTER BB which are typically associated with
    basic block BB.  */
 
@@ -718,7 +719,7 @@ fixup_reorder_chain ()
       reverse direction.
    2. Count insns in chain, going both directions, and check if equal.
    3. Check that get_last_insn () returns the actual end of chain.  */
-
+#ifdef ENABLE_CHECKING
 static void
 verify_insn_chain ()
 {
@@ -775,7 +776,7 @@ verify_insn_chain ()
       abort ();
     }
 }
-
+#endif
 
 /* Reorder basic blocks.  */
 
===================================================================
Index: config/i386/i386.h
--- config/i386/i386.h	2000/04/03 06:08:44	1.108
+++ config/i386/i386.h	2000/04/03 23:21:44
@@ -1210,7 +1210,7 @@ enum reg_class
 #define APPLY_RESULT_SIZE (8+108)
 
 /* 1 if N is a possible register number for function argument passing.  */
-#define FUNCTION_ARG_REGNO_P(N) ((N) >= 0 && (N) < REGPARM_MAX)
+#define FUNCTION_ARG_REGNO_P(N) ((N) < REGPARM_MAX)
 
 /* Define a data type for recording info about an argument list
    during the scan of that argument list.  This data type should
===================================================================
Index: config/i386/i386.md
--- config/i386/i386.md	2000/03/28 05:58:50	1.147
+++ config/i386/i386.md	2000/04/03 23:21:45
@@ -7159,8 +7159,6 @@
   ""
   "
 {
-  rtx addr;
-
   if (operands[4] == const0_rtx)
     {
       emit_insn (gen_call_value (operands[0], operands[1], operands[2]));
@@ -7183,8 +7181,6 @@
   ""
   "
 {
-  rtx addr;
-
   /* ??? Not true for calls to static functions.  */
   if (flag_pic)
     current_function_uses_pic_offset_table = 1;


More information about the Gcc-patches mailing list