summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>1999-10-03 16:28:33 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>1999-10-03 16:28:33 +0000
commit29fd0b7ab06e56732fcefa586b6e08937fc02633 (patch)
tree55795b9bbaaf83eb846e7535a9776f7e8e633c25
parent01ce7a1b4676cbabb411defe964313048ee6c8fd (diff)
downloadgcc-29fd0b7ab06e56732fcefa586b6e08937fc02633.tar.gz
* cpplib.c (if_directive_nameo): Add static prototype.
* cse.c (cse_insn): Remove unused variable `p'. * except.c (create_rethrow_ref, push_entry, receive_exception_label, new_eh_region_entry, find_func_region, clear_function_eh_region, process_nestinfo): Add static prototypes. (get_reg_for_handler): Hide definition. (process_nestinfo): Initialize variable `extra_handlers'. * expr.h (expand_builtin_longjmp): Add extern prototype. * final.c (final_addr_vec_align, align_fuzz): Add static prototypes. * function.c (prepare_function_start): Likewise. (pop_function_context_from): Mark parameter `context' with ATTRIBUTE_UNUSED. (push_temp_slots_for_block, flush_addressof): Hide definition. * gcov.c (init_arc, reverse_arcs, create_program_flow_graph, solve_program_flow_graph, calculate_branch_probs, function_summary, main, fancy_abort): Add prototypes. * gen-protos.c (add_hash, parse_fn_proto, main): Likewise. (add_hash): Constify a char*. * ggc-common.c (ggc_mark_rtx_ptr, ggc_mark_tree_ptr, ggc_mark_tree_varray_ptr, ggc_mark_tree_hash_table_ptr, ggc_mark_string_ptr, ggc_mark_tree_hash_table_entry): Add prototypes. * integrate.c (expand_inline_function_eh_labelmap): Likewise. * lists.c (free_list, zap_lists): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29783 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog36
-rw-r--r--gcc/cpplib.c2
-rw-r--r--gcc/cse.c2
-rw-r--r--gcc/except.c15
-rw-r--r--gcc/expr.h1
-rw-r--r--gcc/final.c8
-rw-r--r--gcc/function.c7
-rw-r--r--gcc/gcov.c10
-rw-r--r--gcc/gen-protos.c7
-rw-r--r--gcc/ggc-common.c7
-rw-r--r--gcc/integrate.c2
-rw-r--r--gcc/lists.c3
12 files changed, 90 insertions, 10 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 803a8c1853c..7b90910f77d 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,39 @@
+Sun Oct 3 12:24:52 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * cpplib.c (if_directive_nameo): Add static prototype.
+
+ * cse.c (cse_insn): Remove unused variable `p'.
+
+ * except.c (create_rethrow_ref, push_entry,
+ receive_exception_label, new_eh_region_entry, find_func_region,
+ clear_function_eh_region, process_nestinfo): Add static prototypes.
+ (get_reg_for_handler): Hide definition.
+ (process_nestinfo): Initialize variable `extra_handlers'.
+
+ * expr.h (expand_builtin_longjmp): Add extern prototype.
+
+ * final.c (final_addr_vec_align, align_fuzz): Add static prototypes.
+
+ * function.c (prepare_function_start): Likewise.
+ (pop_function_context_from): Mark parameter `context' with
+ ATTRIBUTE_UNUSED.
+ (push_temp_slots_for_block, flush_addressof): Hide definition.
+
+ * gcov.c (init_arc, reverse_arcs, create_program_flow_graph,
+ solve_program_flow_graph, calculate_branch_probs,
+ function_summary, main, fancy_abort): Add prototypes.
+
+ * gen-protos.c (add_hash, parse_fn_proto, main): Likewise.
+ (add_hash): Constify a char*.
+
+ * ggc-common.c (ggc_mark_rtx_ptr, ggc_mark_tree_ptr,
+ ggc_mark_tree_varray_ptr, ggc_mark_tree_hash_table_ptr,
+ ggc_mark_string_ptr, ggc_mark_tree_hash_table_entry): Add prototypes.
+
+ * integrate.c (expand_inline_function_eh_labelmap): Likewise.
+
+ * lists.c (free_list, zap_lists): Likewise.
+
Sun Oct 3 12:05:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* alias.c (nonlocal_reference_p): Add static prototype.
diff --git a/gcc/cpplib.c b/gcc/cpplib.c
index 80f02de69b1..7e41d1b4228 100644
--- a/gcc/cpplib.c
+++ b/gcc/cpplib.c
@@ -49,6 +49,8 @@ static void skip_if_group PROTO ((cpp_reader *));
static void parse_name PARAMS ((cpp_reader *, int));
static void parse_string PARAMS ((cpp_reader *, int));
static int parse_assertion PARAMS ((cpp_reader *));
+static const char *if_directive_name PARAMS ((cpp_reader *,
+ struct if_stack *));
/* External declarations. */
diff --git a/gcc/cse.c b/gcc/cse.c
index 9422cb93764..42b338c5cec 100644
--- a/gcc/cse.c
+++ b/gcc/cse.c
@@ -7404,8 +7404,6 @@ cse_insn (insn, libcall_insn)
it. If it was a computed branch, delete it and re-emit. */
else if (dest == pc_rtx && GET_CODE (src) == LABEL_REF)
{
- rtx p;
-
/* If this is not in the format for a simple branch and
we are the only SET in it, re-emit it. */
if (! simplejump_p (insn) && n_sets == 1)
diff --git a/gcc/except.c b/gcc/except.c
index 3ecf7fc7121..c7257b31ef4 100644
--- a/gcc/except.c
+++ b/gcc/except.c
@@ -472,7 +472,14 @@ static void mark_eh_node PROTO((struct eh_node *));
static void mark_eh_stack PROTO((struct eh_stack *));
static void mark_eh_queue PROTO((struct eh_queue *));
static void mark_tree_label_node PROTO ((struct label_node *));
-static void mark_func_eh_entry PROTO ((void *));
+static void mark_func_eh_entry PROTO ((void *));
+static rtx create_rethrow_ref PROTO ((int));
+static void push_entry PROTO ((struct eh_stack *, struct eh_entry*));
+static void receive_exception_label PROTO ((rtx));
+static int new_eh_region_entry PROTO ((int, rtx));
+static int find_func_region PROTO ((int));
+static void clear_function_eh_region PROTO ((void));
+static void process_nestinfo PROTO ((int, eh_nesting_info *, int *));
rtx expand_builtin_return_addr PROTO((enum built_in_function, int, rtx));
@@ -877,7 +884,7 @@ get_new_handler (handler, typeinfo)
/* Find the index in function_eh_regions associated with a NOTE region. If
the region cannot be found, a -1 is returned. This should never happen! */
-int
+static int
find_func_region (insn_region)
int insn_region;
{
@@ -2842,6 +2849,7 @@ eh_regs (pcontext, psp, pra, outgoing)
/* Retrieve the register which contains the pointer to the eh_context
structure set the __throw. */
+#if 0
rtx
get_reg_for_handler ()
{
@@ -2850,6 +2858,7 @@ get_reg_for_handler ()
current_function_decl);
return reg1;
}
+#endif
/* Set up the epilogue with the magic bits we'll need to return to the
exception handler. */
@@ -3064,7 +3073,7 @@ process_nestinfo (block, info, nested_eh_region)
handler_info *ptr, *last_ptr = NULL;
int x, y, count = 0;
int extra = 0;
- handler_info **extra_handlers;
+ handler_info **extra_handlers = 0;
int index = info->region_index[block];
/* If we've already processed this block, simply return. */
diff --git a/gcc/expr.h b/gcc/expr.h
index 13421d5b21b..667ba0284d0 100644
--- a/gcc/expr.h
+++ b/gcc/expr.h
@@ -891,6 +891,7 @@ extern rtx expand_builtin_va_arg PROTO((tree, tree));
#endif
extern rtx expand_builtin_setjmp PROTO((rtx, rtx, rtx, rtx));
+extern void expand_builtin_longjmp PROTO ((rtx, rtx));
extern rtx expand_builtin_saveregs PROTO((void));
extern int get_varargs_alias_set PROTO((void));
diff --git a/gcc/final.c b/gcc/final.c
index 5ef12ef3610..7402e270e93 100644
--- a/gcc/final.c
+++ b/gcc/final.c
@@ -310,6 +310,10 @@ static void leaf_renumber_regs PROTO((rtx));
#ifdef HAVE_cc0
static int alter_cond PROTO((rtx));
#endif
+#ifndef ADDR_VEC_ALIGN
+static int final_addr_vec_align PROTO ((rtx));
+#endif
+static int align_fuzz PROTO ((rtx, rtx, int, unsigned));
/* Initialize data in final at the beginning of a compilation. */
@@ -824,7 +828,7 @@ get_attr_length (insn)
#endif
#ifndef ADDR_VEC_ALIGN
-int
+static int
final_addr_vec_align (addr_vec)
rtx addr_vec;
{
@@ -889,7 +893,7 @@ label_to_alignment (label)
GROWTH should be ~0 if the objective is to compute potential code size
increase, and 0 if the objective is to compute potential shrink.
The return value is undefined for any other value of GROWTH. */
-int
+static int
align_fuzz (start, end, known_align_log, growth)
rtx start, end;
int known_align_log;
diff --git a/gcc/function.c b/gcc/function.c
index eec10118276..c84b6d647c5 100644
--- a/gcc/function.c
+++ b/gcc/function.c
@@ -280,6 +280,7 @@ static void compute_insns_for_mem PROTO ((rtx, rtx, struct hash_table *));
static void mark_temp_slot PROTO ((struct temp_slot *));
static void mark_function_status PROTO ((struct function *));
static void mark_function_chain PROTO ((void *));
+static void prepare_function_start PROTO ((void));
/* Pointer to chain of `struct function' for containing functions. */
@@ -349,7 +350,7 @@ push_function_context ()
void
pop_function_context_from (context)
- tree context;
+ tree context ATTRIBUTE_UNUSED;
{
struct function *p = outer_function_chain;
struct var_refs_queue *queue;
@@ -1148,6 +1149,7 @@ push_temp_slots ()
/* Likewise, but save the new level as the place to allocate variables
for blocks. */
+#if 0
void
push_temp_slots_for_block ()
{
@@ -1182,6 +1184,7 @@ set_target_temp_slot_level (level)
{
target_temp_slot_level = level;
}
+#endif
/* Pop a temporary nesting level. All slots in use in the current level
are freed. */
@@ -2680,6 +2683,7 @@ gen_mem_addressof (reg, decl)
/* If DECL has an RTL that is an ADDRESSOF rtx, put it into the stack. */
+#if 0
void
flush_addressof (decl)
tree decl;
@@ -2691,6 +2695,7 @@ flush_addressof (decl)
&& GET_CODE (XEXP (XEXP (DECL_RTL (decl), 0), 0)) == REG)
put_addressof_into_stack (XEXP (DECL_RTL (decl), 0), 0);
}
+#endif
/* Force the register pointed to by R, an ADDRESSOF rtx, into the stack. */
diff --git a/gcc/gcov.c b/gcc/gcov.c
index 7aff8092000..ea1e7c34098 100644
--- a/gcc/gcov.c
+++ b/gcc/gcov.c
@@ -220,6 +220,15 @@ static void read_files PROTO ((void));
static void scan_for_source_files PROTO ((void));
static void output_data PROTO ((void));
static void print_usage PROTO ((void)) ATTRIBUTE_NORETURN;
+static void init_arc PROTO ((struct adj_list *, int, int, struct bb_info *));
+static struct adj_list *reverse_arcs PROTO ((struct adj_list *));
+static void create_program_flow_graph PROTO ((struct bb_info_list *));
+static void solve_program_flow_graph PROTO ((struct bb_info_list *));
+static void calculate_branch_probs PROTO ((struct bb_info_list *, int,
+ struct arcdata **, int));
+static void function_summary PROTO ((void));
+
+extern int main PROTO ((int, char **));
int
main (argc, argv)
@@ -269,6 +278,7 @@ fnotice VPROTO ((FILE *file, const char *msgid, ...))
/* More 'friendly' abort that prints the line and file.
config.h can #define abort fancy_abort if you like that sort of thing. */
+extern void fancy_abort PROTO ((void)) ATTRIBUTE_NORETURN;
void
fancy_abort ()
diff --git a/gcc/gen-protos.c b/gcc/gen-protos.c
index 5c1f51c4cbe..497196269ab 100644
--- a/gcc/gen-protos.c
+++ b/gcc/gen-protos.c
@@ -25,13 +25,16 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
int verbose = 0;
const char *progname;
+static void add_hash PARAMS ((const char *));
+static int parse_fn_proto PARAMS ((char *, char *, struct fn_decl *));
+
#define HASH_SIZE 2503 /* a prime */
int hash_tab[HASH_SIZE];
int next_index;
static void
add_hash (fname)
- char *fname;
+ const char *fname;
{
int i, i0;
@@ -124,6 +127,8 @@ parse_fn_proto (start, end, fn)
return 1;
}
+extern int main PARAMS ((int, char **));
+
int
main (argc, argv)
int argc ATTRIBUTE_UNUSED;
diff --git a/gcc/ggc-common.c b/gcc/ggc-common.c
index 319623b0c77..cf28d5bbc0c 100644
--- a/gcc/ggc-common.c
+++ b/gcc/ggc-common.c
@@ -29,6 +29,13 @@
#include "tree.h"
#include "varray.h"
+static void ggc_mark_rtx_ptr PARAMS ((void *));
+static void ggc_mark_tree_ptr PARAMS ((void *));
+static void ggc_mark_tree_varray_ptr PARAMS ((void *));
+static void ggc_mark_tree_hash_table_ptr PARAMS ((void *));
+static void ggc_mark_string_ptr PARAMS ((void *));
+static boolean ggc_mark_tree_hash_table_entry PARAMS ((struct hash_entry *,
+ hash_table_key));
/* Maintain global roots that are preserved during GC. */
diff --git a/gcc/integrate.c b/gcc/integrate.c
index 0725a94cbca..bd2e6624a80 100644
--- a/gcc/integrate.c
+++ b/gcc/integrate.c
@@ -78,6 +78,7 @@ static void process_reg_param PROTO((struct inline_remap *, rtx,
rtx));
void set_decl_abstract_flags PROTO((tree, int));
static tree copy_and_set_decl_abstract_origin PROTO((tree));
+static rtx expand_inline_function_eh_labelmap PROTO((rtx));
/* The maximum number of instructions accepted for inlining a
function. Increasing values mean more agressive inlining.
@@ -1240,7 +1241,6 @@ expand_inline_function (fndecl, parms, target, ignore, type,
default:
abort ();
- break;
}
if (copy)
diff --git a/gcc/lists.c b/gcc/lists.c
index e0cb419e68e..90b67966b15 100644
--- a/gcc/lists.c
+++ b/gcc/lists.c
@@ -24,6 +24,9 @@ Boston, MA 02111-1307, USA. */
#include "rtl.h"
#include "ggc.h"
+static void free_list PARAMS ((rtx *, rtx *));
+static void zap_lists PARAMS ((void *));
+
/* Functions for maintaining cache-able lists of EXPR_LIST and INSN_LISTs. */
/* An INSN_LIST containing all INSN_LISTs allocated but currently unused. */