summaryrefslogtreecommitdiff
path: root/gcc/read-rtl.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/read-rtl.c')
-rw-r--r--gcc/read-rtl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/read-rtl.c b/gcc/read-rtl.c
index 3252a0fcd9f..46ca61a188d 100644
--- a/gcc/read-rtl.c
+++ b/gcc/read-rtl.c
@@ -191,7 +191,7 @@ read_name (char *str, FILE *infile)
struct md_constant tmp_def;
tmp_def.name = p;
- def = htab_find (md_constants, &tmp_def);
+ def = (struct md_constant *) htab_find (md_constants, &tmp_def);
if (def)
p = def->value;
} while (def);
@@ -277,7 +277,7 @@ read_quoted_string (struct obstack *ob, FILE *infile)
}
obstack_1grow (ob, 0);
- return obstack_finish (ob);
+ return (char *) obstack_finish (ob);
}
/* Read a braced string (a la Tcl) onto the obstack. Caller has
@@ -315,7 +315,7 @@ read_braced_string (struct obstack *ob, FILE *infile)
}
obstack_1grow (ob, 0);
- return obstack_finish (ob);
+ return (char *) obstack_finish (ob);
}
/* Read some kind of string constant. This is the high-level routine
@@ -455,7 +455,7 @@ read_constants (FILE *infile, char *tmp_char)
}
else
{
- def = *entry_ptr;
+ def = (struct md_constant *) *entry_ptr;
if (strcmp (def->value, tmp_char))
fatal_with_file_and_line (infile,
"redefinition of %s, was %s, now %s",