summaryrefslogtreecommitdiffstats
path: root/contrib/gcc/read-rtl.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/gcc/read-rtl.c')
-rw-r--r--contrib/gcc/read-rtl.c23
1 files changed, 7 insertions, 16 deletions
diff --git a/contrib/gcc/read-rtl.c b/contrib/gcc/read-rtl.c
index 5b937ec..5efd5dc 100644
--- a/contrib/gcc/read-rtl.c
+++ b/contrib/gcc/read-rtl.c
@@ -25,15 +25,6 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#include "obstack.h"
#include "hashtab.h"
-#ifndef ISDIGIT
-#include <ctype.h>
-#define ISDIGIT isdigit
-#define ISSPACE isspace
-#endif
-
-#define obstack_chunk_alloc xmalloc
-#define obstack_chunk_free free
-
static htab_t md_constants;
static void fatal_with_file_and_line PARAMS ((FILE *, const char *, ...))
@@ -44,7 +35,7 @@ static char *read_string PARAMS ((struct obstack *, FILE *, int));
static char *read_quoted_string PARAMS ((struct obstack *, FILE *));
static char *read_braced_string PARAMS ((struct obstack *, FILE *));
static void read_escape PARAMS ((struct obstack *, FILE *));
-static unsigned def_hash PARAMS ((const void *));
+static hashval_t def_hash PARAMS ((const void *));
static int def_name_eq_p PARAMS ((const void *, const void *));
static void read_constants PARAMS ((FILE *infile, char *tmp_char));
static void validate_const_int PARAMS ((FILE *, const char *));
@@ -265,7 +256,7 @@ read_escape (ob, infile)
obstack_1grow (ob, c);
}
-
+
/* Read a double-quoted string onto the obstack. Caller has scanned
the leading quote. */
@@ -325,7 +316,7 @@ read_braced_string (ob, infile)
obstack_1grow (ob, c);
}
-
+
obstack_1grow (ob, 0);
return obstack_finish (ob);
}
@@ -361,7 +352,7 @@ read_string (ob, infile, star_if_braced)
}
else
fatal_with_file_and_line (infile, "expected `\"' or `{', found `%c'", c);
-
+
if (saw_paren)
{
c = read_skip_spaces (infile);
@@ -410,7 +401,7 @@ atoll (p)
#endif
/* Given a constant definition, return a hash code for its name. */
-static unsigned
+static hashval_t
def_hash (def)
const void *def;
{
@@ -639,7 +630,7 @@ again:
{
XVEC (return_rtx, i) = 0;
break;
- }
+ }
/* Now process the vector. */
case 'E':
@@ -694,7 +685,7 @@ again:
gets a star inserted as its first character, if it is
written with a brace block instead of a string constant. */
int star_if_braced = (format_ptr[-1] == 'T');
-
+
stringbuf = read_string (&rtl_obstack, infile, star_if_braced);
/* For insn patterns, we want to provide a default name
OpenPOWER on IntegriCloud