Warning patches installed
Kaveh R. Ghazi
ghazi@caip.rutgers.edu
Fri Jul 28 09:16:00 GMT 2000
I installed the following patch which fixes a few warnings and also
corrects a K&R bootstrap failure on SunOS4 compiling dwarf2out.c.
Bootstrapped on AIX4.1 and Irix6.
--Kaveh
2000-07-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* dwarf2out.c: Indent #error directive.
* gbl-ctors.h: Fix typo in comment.
(__do_global_ctors): Prototype.
* gcse.c (record_one_set, pre_delete): Remove unused variables.
* rs6000.c (rs6000_maybe_dead): Delete unused prototype.
(print_operand): Initialize variable `t'.
diff -rup orig/egcs-CVS20000726/gcc/config/rs6000/rs6000.c egcs-CVS20000726/gcc/config/rs6000/rs6000.c
--- orig/egcs-CVS20000726/gcc/config/rs6000/rs6000.c Tue Jul 25 16:32:24 2000
+++ egcs-CVS20000726/gcc/config/rs6000/rs6000.c Thu Jul 27 12:24:20 2000
@@ -119,7 +119,6 @@ static int rs6000_sr_alias_set;
static void rs6000_add_gc_roots PARAMS ((void));
static int num_insns_constant_wide PARAMS ((HOST_WIDE_INT));
static rtx expand_block_move_mem PARAMS ((enum machine_mode, rtx, rtx));
-static void rs6000_maybe_dead PARAMS ((rtx));
static void rs6000_emit_stack_tie PARAMS ((void));
static void rs6000_frame_related PARAMS ((rtx, rtx, HOST_WIDE_INT, rtx, rtx));
static void rs6000_emit_allocate_stack PARAMS ((HOST_WIDE_INT, int));
@@ -3905,7 +3904,7 @@ print_operand (file, x, code)
expression. The expression may have one or both operands
negated (if one, only the first one). */
{
- const char *const *t;
+ const char *const *t = 0;
const char *s;
enum rtx_code code = GET_CODE (x);
static const char * const tbl[3][3] = {
diff -rup orig/egcs-CVS20000726/gcc/dwarf2out.c egcs-CVS20000726/gcc/dwarf2out.c
--- orig/egcs-CVS20000726/gcc/dwarf2out.c Mon Jul 24 15:37:32 2000
+++ egcs-CVS20000726/gcc/dwarf2out.c Thu Jul 27 12:16:08 2000
@@ -465,7 +465,7 @@ static void def_cfa_1 PARAMS ((const
.debug_frame. But we know it won't work for .debug_info. */
#ifdef DWARF2_DEBUGGING_INFO
-#error DWARF2_DEBUGGING_INFO requires UNALIGNED_INT_ASM_OP.
+ #error DWARF2_DEBUGGING_INFO requires UNALIGNED_INT_ASM_OP.
#endif
#ifndef ASM_OUTPUT_DWARF_ADDR
diff -rup orig/egcs-CVS20000726/gcc/gbl-ctors.h egcs-CVS20000726/gcc/gbl-ctors.h
--- orig/egcs-CVS20000726/gcc/gbl-ctors.h Wed Sep 15 17:41:11 1999
+++ egcs-CVS20000726/gcc/gbl-ctors.h Thu Jul 27 12:40:39 2000
@@ -44,7 +44,11 @@ typedef void (*func_ptr) (void);
extern func_ptr __CTOR_LIST__[];
extern func_ptr __DTOR_LIST__[];
-/* Declare the routine which need to get invoked at program exit time. */
+/* Declare the routine which needs to get invoked at program start time. */
+
+extern void __do_global_ctors (void);
+
+/* Declare the routine which needs to get invoked at program exit time. */
extern void __do_global_dtors (void);
diff -rup orig/egcs-CVS20000726/gcc/gcse.c egcs-CVS20000726/gcc/gcse.c
--- orig/egcs-CVS20000726/gcc/gcse.c Mon Jul 24 13:38:32 2000
+++ egcs-CVS20000726/gcc/gcse.c Thu Jul 27 12:04:22 2000
@@ -1114,7 +1114,7 @@ record_one_set (regno, insn)
rtx insn;
{
/* allocate a new reg_set element and link it onto the list */
- struct reg_set *new_reg_info, *reg_info_ptr1, *reg_info_ptr2;
+ struct reg_set *new_reg_info;
/* If the table isn't big enough, enlarge it. */
if (regno >= reg_set_table_size)
@@ -4570,7 +4570,7 @@ static int
pre_delete ()
{
unsigned int i;
- int bb, changed;
+ int changed;
struct expr *expr;
struct occr *occr;
More information about the Gcc-patches
mailing list