diff options
author | bernie <bernie@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-07-25 20:43:23 +0000 |
---|---|---|
committer | bernie <bernie@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-07-25 20:43:23 +0000 |
commit | 9318f22c615651d01d70b7311bff88ba220173d6 (patch) | |
tree | d0ebdb183f6e1572fbcf9e7c4fd5488f5016e704 /gcc/gensupport.c | |
parent | bf2df78f1b9a2bcfd18251abc218e969f34a40c9 (diff) | |
download | gcc-9318f22c615651d01d70b7311bff88ba220173d6.tar.gz |
* bitmap.c: Use type-safe memory allocation macros from libiberty.
* c-common.c: Likewise.
* c-decl.c: Likewise.
* c-lang.c: Likewise.
* c-lex.c: Likewise.
* c-opts.c: Likewise.
* c-parse.in: Likewise.
* c-typeck.c: Likewise.
* genconditions.c: Likewise.
* gengtype-lex.l: Likewise.
* gengtype-yacc.y: Likewise.
* gengtype.c: Likewise.
* genmodes.c: Likewise.
* gensupport.c: Likewise.
* read-rtl.c: Likewise.
* read-rtl.c (read_constants): Use INSERT instead of TRUE in call to
htab_find_slot().
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85163 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gensupport.c')
-rw-r--r-- | gcc/gensupport.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/gensupport.c b/gcc/gensupport.c index 56eff3a4394..d253378f522 100644 --- a/gcc/gensupport.c +++ b/gcc/gensupport.c @@ -144,7 +144,7 @@ static struct queue_elem * queue_pattern (rtx pattern, struct queue_elem ***list_tail, const char *filename, int lineno) { - struct queue_elem *e = xmalloc (sizeof (*e)); + struct queue_elem *e = XNEW(struct queue_elem); e->data = pattern; e->filename = filename; e->lineno = lineno; @@ -594,7 +594,7 @@ alter_predicate_for_insn (rtx pattern, int alt, int max_op, int lineno) { size_t c_len = strlen (c); size_t len = alt * (c_len + 1); - char *new_c = xmalloc (len); + char *new_c = XNEWVEC(char, len); memcpy (new_c, c, c_len); for (i = 1; i < alt; ++i) @@ -887,7 +887,7 @@ process_define_cond_exec (void) static char * save_string (const char *s, int len) { - char *result = xmalloc (len + 1); + char *result = XNEWVEC (char, len + 1); memcpy (result, s, len); result[len] = 0; @@ -921,7 +921,7 @@ init_md_reader_args (int argc, char **argv) { struct file_name_list *dirtmp; - dirtmp = xmalloc (sizeof (struct file_name_list)); + dirtmp = XNEW (struct file_name_list); dirtmp->next = 0; /* New one goes on the end */ if (first_dir_md_include == 0) first_dir_md_include = dirtmp; @@ -1122,7 +1122,7 @@ maybe_eval_c_test (const char *expr) return -1; dummy.expr = expr; - test = htab_find (condition_table, &dummy); + test = (const struct c_test *)htab_find (condition_table, &dummy); if (!test) abort (); |