diff options
Diffstat (limited to 'gcc/gensupport.c')
-rw-r--r-- | gcc/gensupport.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/gensupport.c b/gcc/gensupport.c index 5e29e4418eb..644b3b920a3 100644 --- a/gcc/gensupport.c +++ b/gcc/gensupport.c @@ -1200,7 +1200,7 @@ lookup_predicate (const char *name) { struct pred_data key; key.name = name; - return htab_find (predicate_table, &key); + return (struct pred_data *) htab_find (predicate_table, &key); } void @@ -1268,7 +1268,7 @@ init_predicate_table (void) for (i = 0; i < NUM_KNOWN_STD_PREDS; i++) { - pred = xcalloc (sizeof (struct pred_data), 1); + pred = XCNEW (struct pred_data); pred->name = std_preds[i].name; pred->special = std_preds[i].special; |