From 63bc1d05cc767f4ba9e7b2799927fb9e51aa409e Mon Sep 17 00:00:00 2001 From: "Kaveh R. Ghazi" Date: Fri, 28 Jul 2000 16:08:54 +0000 Subject: [PATCH] dwarf2out.c: Indent #error directive. * 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'. From-SVN: r35319 --- gcc/ChangeLog | 12 ++++++++++++ gcc/config/rs6000/rs6000.c | 3 +-- gcc/dwarf2out.c | 2 +- gcc/gbl-ctors.h | 9 +++++++-- gcc/gcse.c | 4 ++-- 5 files changed, 23 insertions(+), 7 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fef22b694d71..e97104a37bd6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,15 @@ +2000-07-28 Kaveh R. Ghazi + + * 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'. + 2000-07-27 Aldy Hernandez * config/arm/arm.md ("call_value"): removed constraints. diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 623a47d1d311..16a55afd6f1e 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -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 --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 8918783c41c7..31c66a74d1c0 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -465,7 +465,7 @@ static void def_cfa_1 PARAMS ((const char *, dw_cfa_location *)); .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 --git a/gcc/gbl-ctors.h b/gcc/gbl-ctors.h index 23fa7361b45a..ad72b16f4b30 100644 --- a/gcc/gbl-ctors.h +++ b/gcc/gbl-ctors.h @@ -2,7 +2,8 @@ for getting g++ file-scope static objects constructed. This file will get included either by libgcc2.c (for systems that don't support a .init section) or by crtstuff.c (for those that do). - Copyright (C) 1991, 1995, 1996, 1998, 1999 Free Software Foundation, Inc. + Copyright (C) 1991, 1995, 1996, 1998, 1999, 2000 + Free Software Foundation, Inc. Contributed by Ron Guilmette (rfg@segfault.us.com) This file is part of GNU CC. @@ -44,7 +45,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 --git a/gcc/gcse.c b/gcc/gcse.c index ad475eeaf665..6275c097258d 100644 --- a/gcc/gcse.c +++ b/gcc/gcse.c @@ -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) @@ -4569,7 +4569,7 @@ static int pre_delete () { unsigned int i; - int bb, changed; + int changed; struct expr *expr; struct occr *occr;