diff options
Diffstat (limited to 'gcc/function.c')
-rw-r--r-- | gcc/function.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/function.c b/gcc/function.c index fd5eeb9..ecdf2823 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -5587,6 +5587,23 @@ rest_of_handle_check_leaf_regs (void) return 0; } +/* Insert a type into the used types hash table. */ +void +used_types_insert (tree t, struct function *func) +{ + if (t != NULL && func != NULL) + { + void **slot; + + if (func->used_types_hash == NULL) + func->used_types_hash = htab_create_ggc (37, htab_hash_pointer, + htab_eq_pointer, NULL); + slot = htab_find_slot (func->used_types_hash, t, INSERT); + if (*slot == NULL) + *slot = t; + } +} + struct tree_opt_pass pass_leaf_regs = { NULL, /* name */ |