Commit ac957f13 by Jeffrey A Law Committed by Jeff Law

* Partially cleaned up prototyping code from HJ.

        * haifa-sched.c (haifa_classify_insn): Renamed from classify_insn.
        All references changed.
        * rtl.h: Protect from multiple inclusions.  Add many prototypes.

        * libgcc2.c (string.h): Hoist inclusion to occur before first use of
        string functions like strlen.
More pending patches.

From-SVN: r17024
parent 0a232106
Tue Dec 9 01:16:06 1997 Jeffrey A Law (law@cygnus.com)
* Partially cleaned up prototyping code from HJ.
* haifa-sched.c (haifa_classify_insn): Renamed from classify_insn.
All references changed.
* rtl.h: Protect from multiple inclusions. Add many prototypes.
Tue Dec 9 01:15:15 199 Fred Fish <fnf@ninemoons.com>7
* libgcc2.c (string.h): Hoist inclusion to occur before first use of
string functions like strlen.
Tue Dec 9 00:57:38 1997 Manfred Hollstein <manfred@s-direktnet.de> Tue Dec 9 00:57:38 1997 Manfred Hollstein <manfred@s-direktnet.de>
* configure.in: Check for functions getrlimit and setrlimit. * configure.in: Check for functions getrlimit and setrlimit.
......
...@@ -714,7 +714,7 @@ static int is_pfree PROTO ((rtx, int, int)); ...@@ -714,7 +714,7 @@ static int is_pfree PROTO ((rtx, int, int));
static int find_conditional_protection PROTO ((rtx, int)); static int find_conditional_protection PROTO ((rtx, int));
static int is_conditionally_protected PROTO ((rtx, int, int)); static int is_conditionally_protected PROTO ((rtx, int, int));
static int may_trap_exp PROTO ((rtx, int)); static int may_trap_exp PROTO ((rtx, int));
static int classify_insn PROTO ((rtx)); static int haifa_classify_insn PROTO ((rtx));
static int is_exception_free PROTO ((rtx, int, int)); static int is_exception_free PROTO ((rtx, int, int));
static char find_insn_mem_list PROTO ((rtx, rtx, rtx, rtx)); static char find_insn_mem_list PROTO ((rtx, rtx, rtx, rtx));
...@@ -2558,7 +2558,7 @@ is_pfree (load_insn, bb_src, bb_trg) ...@@ -2558,7 +2558,7 @@ is_pfree (load_insn, bb_src, bb_trg)
if (GET_MODE (fore_link) == VOIDmode) if (GET_MODE (fore_link) == VOIDmode)
{ {
/* found a DEF-USE dependence (insn1, insn2) */ /* found a DEF-USE dependence (insn1, insn2) */
if (classify_insn (insn2) != PFREE_CANDIDATE) if (haifa_classify_insn (insn2) != PFREE_CANDIDATE)
/* insn2 not guaranteed to be a 1 base reg load */ /* insn2 not guaranteed to be a 1 base reg load */
continue; continue;
...@@ -2659,7 +2659,7 @@ may_trap_exp (x, is_store) ...@@ -2659,7 +2659,7 @@ may_trap_exp (x, is_store)
being either PFREE or PRISKY. */ being either PFREE or PRISKY. */
static int static int
classify_insn (insn) haifa_classify_insn (insn)
rtx insn; rtx insn;
{ {
rtx pat = PATTERN (insn); rtx pat = PATTERN (insn);
...@@ -2721,7 +2721,7 @@ classify_insn (insn) ...@@ -2721,7 +2721,7 @@ classify_insn (insn)
return insn_class; return insn_class;
} /* classify_insn */ } /* haifa_classify_insn */
/* Return 1 if load_insn is prisky (i.e. if load_insn is fed by /* Return 1 if load_insn is prisky (i.e. if load_insn is fed by
a load moved speculatively, or if load_insn is protected by a load moved speculatively, or if load_insn is protected by
...@@ -2754,7 +2754,7 @@ is_exception_free (insn, bb_src, bb_trg) ...@@ -2754,7 +2754,7 @@ is_exception_free (insn, bb_src, bb_trg)
rtx insn; rtx insn;
int bb_src, bb_trg; int bb_src, bb_trg;
{ {
int insn_class = classify_insn (insn); int insn_class = haifa_classify_insn (insn);
/* handle non-load insns */ /* handle non-load insns */
switch (insn_class) switch (insn_class)
......
...@@ -1446,6 +1446,7 @@ char *ctime (); ...@@ -1446,6 +1446,7 @@ char *ctime ();
#include "gbl-ctors.h" #include "gbl-ctors.h"
#include "gcov-io.h" #include "gcov-io.h"
#include <string.h>
static struct bb *bb_head; static struct bb *bb_head;
...@@ -1723,8 +1724,6 @@ __bb_init_func (struct bb *blocks) ...@@ -1723,8 +1724,6 @@ __bb_init_func (struct bb *blocks)
#define MACHINE_STATE_RESTORE(ID) #define MACHINE_STATE_RESTORE(ID)
#endif #endif
#include <string.h>
/* Number of buckets in hashtable of basic block addresses. */ /* Number of buckets in hashtable of basic block addresses. */
#define BB_BUCKETS 311 #define BB_BUCKETS 311
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment