diff options
author | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-12-25 16:59:51 +0000 |
---|---|---|
committer | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-12-25 16:59:51 +0000 |
commit | f9567f01d5da105421eb3e672fbf0ae7e28d9d72 (patch) | |
tree | 45ce0b16704506b682f3c11d643f3f48df97bee9 | |
parent | f89071b3181de06ca5e468ad40535387f7b3d657 (diff) | |
download | gcc-f9567f01d5da105421eb3e672fbf0ae7e28d9d72.tar.gz |
* final.c (compute_alignments): Make it static.
* gcse.c (gcse_main, bypass_jumps): Likewise.
* web.c (web_main): Likewise.
* output.h: Remove the prototype for compute_alignments.
* rtl.h: Remove the prototypes for web_main, gcse_main, and
bypass_jumps.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@109051 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 9 | ||||
-rw-r--r-- | gcc/final.c | 5 | ||||
-rw-r--r-- | gcc/gcse.c | 4 | ||||
-rw-r--r-- | gcc/output.h | 3 | ||||
-rw-r--r-- | gcc/rtl.h | 4 | ||||
-rw-r--r-- | gcc/web.c | 2 |
6 files changed, 16 insertions, 11 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6d23fdc1121..8433c93bb3d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,12 @@ +2005-12-25 Kazu Hirata <kazu@codesourcery.com> + + * final.c (compute_alignments): Make it static. + * gcse.c (gcse_main, bypass_jumps): Likewise. + * web.c (web_main): Likewise. + * output.h: Remove the prototype for compute_alignments. + * rtl.h: Remove the prototypes for web_main, gcse_main, and + bypass_jumps. + 2005-12-24 Roger Sayle <roger@eyesopen.com> * expr.c (force_operand): Use expand_fix and expand_float to diff --git a/gcc/final.c b/gcc/final.c index 2b13fb907b9..b25876af619 100644 --- a/gcc/final.c +++ b/gcc/final.c @@ -676,7 +676,10 @@ insn_current_reference_address (rtx branch) } #endif /* HAVE_ATTR_length */ -void +/* Compute branch alignments based on frequency information in the + CFG. */ + +static void compute_alignments (void) { int log, max_skip, max_log; diff --git a/gcc/gcse.c b/gcc/gcse.c index 8e4dbecb672..596669480f5 100644 --- a/gcc/gcse.c +++ b/gcc/gcse.c @@ -660,7 +660,7 @@ static bool is_too_expensive (const char *); F is the first instruction in the function. Return nonzero if a change is mode. */ -int +static int gcse_main (rtx f ATTRIBUTE_UNUSED, FILE *file) { int changed, pass; @@ -6510,7 +6510,7 @@ store_motion (void) /* Entry point for jump bypassing optimization pass. */ -int +static int bypass_jumps (FILE *file) { int changed; diff --git a/gcc/output.h b/gcc/output.h index 38278b768ad..39b24bf3228 100644 --- a/gcc/output.h +++ b/gcc/output.h @@ -23,9 +23,6 @@ Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA #ifndef GCC_OUTPUT_H #define GCC_OUTPUT_H -/* Compute branch alignments based on frequency information in the CFG. */ -extern void compute_alignments (void); - /* Initialize data in final at the beginning of a compilation. */ extern void init_final (const char *); diff --git a/gcc/rtl.h b/gcc/rtl.h index 9ac8a884aa9..104d4fb6cde 100644 --- a/gcc/rtl.h +++ b/gcc/rtl.h @@ -1977,8 +1977,6 @@ extern unsigned int extended_count (rtx, enum machine_mode, int); extern rtx remove_death (unsigned int, rtx); extern void dump_combine_stats (FILE *); extern void dump_combine_total_stats (FILE *); -/* In web.c */ -extern void web_main (void); /* In sched-rgn.c. */ extern void schedule_insns (FILE *); @@ -2040,8 +2038,6 @@ extern void expand_dec (rtx, rtx); /* In gcse.c */ extern bool can_copy_p (enum machine_mode); extern rtx fis_get_condition (rtx); -extern int gcse_main (rtx, FILE *); -extern int bypass_jumps (FILE *); /* In postreload-gcse.c */ extern void gcse_after_reload_main (rtx); diff --git a/gcc/web.c b/gcc/web.c index 74ad0f3e82c..a52a17dfe9f 100644 --- a/gcc/web.c +++ b/gcc/web.c @@ -232,7 +232,7 @@ replace_ref (struct ref *ref, rtx reg) /* Main entry point. */ -void +static void web_main (void) { struct df *df; |