summaryrefslogtreecommitdiff
path: root/gcc/haifa-sched.c
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1997-08-19 16:15:54 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1997-08-19 16:15:54 +0000
commitdc58fc4fdca2fcede4c5d6fa3efc20c5ac7685e5 (patch)
treee2f8780b8398fe91624d5696e8c2ac89b3591adf /gcc/haifa-sched.c
parent4429ee8b18d06b09cf6932fd444ab35b9df941a7 (diff)
downloadgcc-dc58fc4fdca2fcede4c5d6fa3efc20c5ac7685e5.tar.gz
* haifa-sched.c: Make lots of variable static.
Just cleaning stuff up. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@14848 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/haifa-sched.c')
-rw-r--r--gcc/haifa-sched.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/gcc/haifa-sched.c b/gcc/haifa-sched.c
index 57bff8bec51..0fab54ba5e2 100644
--- a/gcc/haifa-sched.c
+++ b/gcc/haifa-sched.c
@@ -182,7 +182,7 @@ extern rtx *reg_known_value;
solution. (For understanding the mapping of bits to units, see
definition of function_units[] in "insn-attrtab.c") */
-int target_units = 0;
+static int target_units = 0;
/* issue_rate is the number of insns that can be scheduled in the same
machine cycle. It can be defined in the config/mach/mach.h file,
@@ -586,8 +586,8 @@ typedef struct
}
bitlst;
-int bitlst_table_last;
-int bitlst_table_size;
+static int bitlst_table_last;
+static int bitlst_table_size;
static int *bitlst_table;
static char bitset_member PROTO ((bitset, int, int));
@@ -619,14 +619,14 @@ static candidate *candidate_table;
Lists of split and update blocks for each candidate of the current
target are in array bblst_table */
-int *bblst_table, bblst_size, bblst_last;
+static int *bblst_table, bblst_size, bblst_last;
#define IS_VALID(src) ( candidate_table[src].is_valid )
#define IS_SPECULATIVE(src) ( candidate_table[src].is_speculative )
#define SRC_PROB(src) ( candidate_table[src].src_prob )
/* The bb being currently scheduled. */
-int target_bb;
+static int target_bb;
/* List of edges. */
typedef bitlst edgelst;
@@ -642,11 +642,11 @@ void debug_candidates PROTO ((int));
typedef bitset bbset;
/* Number of words of the bbset. */
-int bbset_size;
+static int bbset_size;
/* Dominators array: dom[i] contains the bbset of dominators of
bb i in the region. */
-bbset *dom;
+static bbset *dom;
/* bb 0 is the only region entry */
#define IS_RGN_ENTRY(bb) (!bb)
@@ -657,7 +657,7 @@ bbset *dom;
/* Probability: Prob[i] is a float in [0, 1] which is the probability
of bb i relative to the region entry. */
-float *prob;
+static float *prob;
/* The probability of bb_src, relative to bb_trg. Note, that while the
'prob[bb]' is a float in [0, 1], this macro returns an integer
@@ -669,16 +669,16 @@ float *prob;
typedef bitset edgeset;
/* Number of edges in the region. */
-int rgn_nr_edges;
+static int rgn_nr_edges;
/* Array of size rgn_nr_edges. */
-int *rgn_edges;
+static int *rgn_edges;
/* Number of words in an edgeset. */
-int edgeset_size;
+static int edgeset_size;
/* Mapping from each edge in the graph to its number in the rgn. */
-int *edge_to_bit;
+static int *edge_to_bit;
#define EDGE_TO_BIT(edge) (edge_to_bit[edge])
/* The split edges of a source bb is different for each target
@@ -687,10 +687,10 @@ int *edge_to_bit;
the split edges of each bb relative to the region entry.
pot_split[bb] is the set of potential split edges of bb. */
-edgeset *pot_split;
+static edgeset *pot_split;
/* For every bb, a set of its ancestor edges. */
-edgeset *ancestor_edges;
+static edgeset *ancestor_edges;
static void compute_dom_prob_ps PROTO ((int));