summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraj <aj@138bc75d-0d04-0410-961f-82ee72b054a4>2002-07-06 13:39:46 +0000
committeraj <aj@138bc75d-0d04-0410-961f-82ee72b054a4>2002-07-06 13:39:46 +0000
commit4b6ffd1baefaaf652a0427d1484c945b5af06cc0 (patch)
treea66f8e0a3431cadcb145609040b3740eb8aecd35
parente2e0b6b0153085ae3195283bd8fbce3c0329033e (diff)
downloadgcc-4b6ffd1baefaaf652a0427d1484c945b5af06cc0.tar.gz
* toplev.c (set_fast_math_flags): Don't use ISO C style function
definitions. * gengtype.c (open_base_files): Likewise. (close_output_files): Likewise. * tracer.c (find_best_predecessor): Likewise. (find_best_successor): Likewise. (ignore_bb_p): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55286 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/gengtype.c8
-rw-r--r--gcc/toplev.c3
-rw-r--r--gcc/tracer.c13
3 files changed, 17 insertions, 7 deletions
diff --git a/gcc/gengtype.c b/gcc/gengtype.c
index f96fc53c463..b52d4a88d6a 100644
--- a/gcc/gengtype.c
+++ b/gcc/gengtype.c
@@ -25,6 +25,10 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
/* Nonzero iff an error has occurred. */
static int hit_error = 0;
+static void open_base_files PARAMS ((void));
+static void close_output_files PARAMS ((void));
+
+
/* Report an error at POS, printing MSG. */
void
@@ -607,7 +611,7 @@ oprintf VPARAMS ((outf_p o, const char *format, ...))
/* Open the global header file and the language-specific header files. */
static void
-open_base_files (void)
+open_base_files ()
{
size_t i;
@@ -795,7 +799,7 @@ get_output_file_name (input_file)
but don't unnecessarily change modification times. */
static void
-close_output_files PARAMS ((void))
+close_output_files ()
{
outf_p of;
diff --git a/gcc/toplev.c b/gcc/toplev.c
index cbdb8ffa732..0c2fd7cff7d 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -1549,7 +1549,8 @@ set_Wunused (setting)
-ffast-math and -fno-fast-math imply. */
void
-set_fast_math_flags (int set)
+set_fast_math_flags (set)
+ int set;
{
flag_trapping_math = !set;
flag_unsafe_math_optimizations = set;
diff --git a/gcc/tracer.c b/gcc/tracer.c
index b7c5a768b7d..c0fbe21ad84 100644
--- a/gcc/tracer.c
+++ b/gcc/tracer.c
@@ -1,6 +1,6 @@
/* The tracer pass for the GNU compiler.
Contributed by Jan Hubicka, SuSE Labs.
- Copyright (C) 2001 Free Software Foundation, Inc.
+ Copyright (C) 2001, 2002 Free Software Foundation, Inc.
This file is part of GCC.
@@ -49,6 +49,8 @@
static int count_insns PARAMS ((basic_block));
static bool ignore_bb_p PARAMS ((basic_block));
static bool better_p PARAMS ((edge, edge));
+static edge find_best_successor PARAMS ((basic_block));
+static edge find_best_predecessor PARAMS ((basic_block));
static int find_trace PARAMS ((basic_block, basic_block *));
static void tail_duplicate PARAMS ((void));
static void layout_superblocks PARAMS ((void));
@@ -65,7 +67,8 @@ static int branch_ratio_cutoff;
/* Return true if we should ignore the basic block for purposes of tracing. */
static bool
-ignore_bb_p (basic_block bb)
+ignore_bb_p (bb)
+ basic_block bb;
{
if (bb->index < 0)
return true;
@@ -110,7 +113,8 @@ better_p (e1, e2)
/* Return most frequent successor of basic block BB. */
static edge
-find_best_successor (basic_block bb)
+find_best_successor (bb)
+ basic_block bb;
{
edge e;
edge best = NULL;
@@ -128,7 +132,8 @@ find_best_successor (basic_block bb)
/* Return most frequent predecessor of basic block BB. */
static edge
-find_best_predecessor (basic_block bb)
+find_best_predecessor (bb)
+ basic_block bb;
{
edge e;
edge best = NULL;