diff options
author | Nathan Sidwell <nathan@acm.org> | 2020-11-17 13:23:32 -0800 |
---|---|---|
committer | Nathan Sidwell <nathan@acm.org> | 2020-11-17 13:28:08 -0800 |
commit | d3ae802402b03e5df0518f1b71e0eeeff99ada28 (patch) | |
tree | f84b089cf1b1b55e7d8b94ce53f856126bf596aa /gcc/tree.h | |
parent | e0da4aed176a8de042a8482beb65499e29448556 (diff) | |
download | gcc-d3ae802402b03e5df0518f1b71e0eeeff99ada28.zip gcc-d3ae802402b03e5df0518f1b71e0eeeff99ada28.tar.gz gcc-d3ae802402b03e5df0518f1b71e0eeeff99ada28.tar.bz2 |
extend cache_integer_cst
This modules-related patch extends cache_integer_cst. Currently, when
given a small cst, that cst is added to the type's small and /must
not/ already be there. Large values are fine if they are already in
the large cache. This adds a parameter to indicate small duplicates
are ok, and it returns the cached value -- either what was already
tehre, or the newly inserted const.
gcc/
* tree.h (cache_integer_cst): Add defaulted might_duplicate parm.
* tree.c (cache_integer_cst): Return the integer cst, add
might_duplicate parm to permit finding a small duplicate.
Diffstat (limited to 'gcc/tree.h')
-rw-r--r-- | gcc/tree.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -5124,7 +5124,7 @@ extern const_tree strip_invariant_refs (const_tree); extern tree lhd_gcc_personality (void); extern void assign_assembler_name_if_needed (tree); extern bool warn_deprecated_use (tree, tree); -extern void cache_integer_cst (tree); +extern tree cache_integer_cst (tree, bool might_duplicate = false); extern const char *combined_fn_name (combined_fn); /* Compare and hash for any structure which begins with a canonical |