This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
egcs, sparc warning fixes
- To: law at cygnus dot com
- Subject: egcs, sparc warning fixes
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Mon, 2 Mar 1998 14:12:14 -0500 (EST)
- Cc: egcs at cygnus dot com
This one gets rid of a bunch of implicit function decl warnings,
as well as some about enumeration switches on sparcs. Is it okay to
install?
--Kaveh
Sun Mar 1 10:58:15 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* sparc.c (ultrasparc_adjust_cost): Add default case in
enumeration switch.
* sparc.h: Add prototypes for extern functions defined in sparc.c.
diff -r -u -p orig/egcs-980301/gcc/config/sparc/sparc.c egcs-980301/gcc/config/sparc/sparc.c
--- orig/egcs-980301/gcc/config/sparc/sparc.c Fri Jan 30 18:34:12 1998
+++ egcs-980301/gcc/config/sparc/sparc.c Sun Mar 1 22:24:49 1998
@@ -6158,6 +6158,9 @@ ultrasparc_adjust_cost (insn, link, dep_
if (dep_type == TYPE_LOAD || dep_type == TYPE_SLOAD)
return cost + 3;
break;
+
+ default:
+ break;
}
break;
@@ -6166,6 +6169,9 @@ ultrasparc_adjust_cost (insn, link, dep_
if (! SLOW_FP (dep_type))
return 0;
break;
+
+ default:
+ break;
}
/* Other costs not accounted for:
diff -r -u -p orig/egcs-980301/gcc/config/sparc/sparc.h egcs-980301/gcc/config/sparc/sparc.h
--- orig/egcs-980301/gcc/config/sparc/sparc.h Fri Jan 30 18:34:14 1998
+++ egcs-980301/gcc/config/sparc/sparc.h Sun Mar 1 22:31:47 1998
@@ -3184,17 +3184,76 @@ do { \
/* Declare functions defined in sparc.c and used in templates. */
-extern char *singlemove_string ();
extern char *doublemove_string ();
-extern char *output_move_double ();
-extern char *output_move_quad ();
+extern char *output_block_move ();
+extern char *output_cbranch ();
extern char *output_fp_move_double ();
extern char *output_fp_move_quad ();
-extern char *output_block_move ();
+extern char *output_move_double ();
+extern char *output_move_quad ();
+extern char *output_return ();
extern char *output_scc_insn ();
-extern char *output_cbranch ();
extern char *output_v9branch ();
-extern char *output_return ();
+extern char *singlemove_string ();
+
+extern void emit_v9_brxx_insn ();
+extern void finalize_pic ();
+extern void output_double_int ();
+extern void output_function_epilogue ();
+extern void output_function_prologue ();
+extern void print_operand ();
+extern void sparc_flat_output_function_epilogue ();
+extern void sparc_flat_output_function_prologue ();
+
+extern int addrs_ok_for_ldd_peep ();
+extern int arith10_double_operand ();
+extern int arith10_operand ();
+extern int arith11_double_operand ();
+extern int arith11_operand ();
+extern int arith_double_operand ();
+extern int arith_operand ();
+extern int call_operand_address ();
+extern int cc_arithop ();
+extern int cc_arithopn ();
+extern int check_pic ();
+extern int compute_frame_size ();
+extern int data_segment_operand ();
+extern int eligible_for_epilogue_delay ();
+extern int emit_move_sequence ();
+extern int extend_op ();
+extern int fcc_reg_operand ();
+extern int fp_zero_operand ();
+extern int icc_or_fcc_reg_operand ();
+extern int label_ref_operand ();
+extern int mem_aligned_8 ();
+extern int move_operand ();
+extern int noov_compare_op ();
+extern int pic_address_needs_scratch ();
+extern int reg_or_0_operand ();
+extern int reg_or_nonsymb_mem_operand ();
+extern int reg_unused_after ();
+extern int register_ok_for_ldd ();
+extern int registers_ok_for_ldd_peep ();
+extern int restore_operand ();
+extern int short_branch ();
+extern int small_int ();
+extern int sp64_medium_pic_operand ();
+extern int sparc_flat_eligible_for_epilogue_delay ();
+extern int sparc_flat_epilogue_delay_slots ();
+extern int sparc_operand ();
+extern int splittable_immediate_memory_operand ();
+extern int splittable_symbolic_memory_operand ();
+extern int supersparc_adjust_cost ();
+extern int symbolic_memory_operand ();
+extern int symbolic_operand ();
+extern int text_segment_operand ();
+extern int ultrasparc_adjust_cost ();
+extern int uns_small_int ();
+extern int v9_regcmp_op ();
+extern int v9_regcmp_p ();
+
+extern unsigned long sparc_flat_compute_frame_size ();
+extern unsigned long sparc_type_code ();
/* Defined in flags.h, but insn-emit.c does not include flags.h. */
--
Kaveh R. Ghazi Project Manager / Custom Development
ghazi@caip.rutgers.edu ICon CMT Corp.