aboutsummaryrefslogtreecommitdiff
path: root/gcc/function.h
diff options
context:
space:
mode:
authorAndrew MacLeod <amacleod@redhat.com>2021-11-09 09:29:23 -0500
committerAndrew MacLeod <amacleod@redhat.com>2021-11-09 13:27:42 -0500
commit56af35de3d11960100996b96034dc9ccd7c75ca3 (patch)
treecf373ec2c094fa6ef46252f65481e55c65181d27 /gcc/function.h
parent53080c5b4ce3742d20a0aa4643203215f20aadf6 (diff)
downloadgcc-56af35de3d11960100996b96034dc9ccd7c75ca3.zip
gcc-56af35de3d11960100996b96034dc9ccd7c75ca3.tar.gz
gcc-56af35de3d11960100996b96034dc9ccd7c75ca3.tar.bz2
Keep x_range_query NULL for global ranges.
Instead of x_range_query always pointing to an object, have it default to NULL and return a pointer to the global query in that case. * function.c (allocate_struct_function): Don't set x_range_query. * function.h (get_range_query): Move to value-query.h. * gimple-range.cc (enable_ranger): Check that query is currently NULL. (disable_ranger): Clear function current query field. * value-query.cc (get_global_range_query): Relocate to: * value-query.h (get_global_range_query): Here and inline. (get_range_query): Relocate here from function.h.
Diffstat (limited to 'gcc/function.h')
-rw-r--r--gcc/function.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/gcc/function.h b/gcc/function.h
index 36003e7..8994308 100644
--- a/gcc/function.h
+++ b/gcc/function.h
@@ -719,15 +719,4 @@ extern const char *current_function_name (void);
extern void used_types_insert (tree);
-/* Returns the currently active range access class. When there is no active
- range class, global ranges are used. Never returns null. */
-
-ATTRIBUTE_RETURNS_NONNULL inline range_query *
-get_range_query (const struct function *fun)
-{
- return fun->x_range_query;
-}
-
-extern range_query *get_global_range_query ();
-
#endif /* GCC_FUNCTION_H */