aboutsummaryrefslogtreecommitdiff
path: root/gcc/function.c
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.c
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.c')
-rw-r--r--gcc/function.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/gcc/function.c b/gcc/function.c
index af3d57b..61b3bd0 100644
--- a/gcc/function.c
+++ b/gcc/function.c
@@ -4873,8 +4873,6 @@ allocate_struct_function (tree fndecl, bool abstract_p)
binding annotations among them. */
cfun->debug_nonbind_markers = lang_hooks.emits_begin_stmt
&& MAY_HAVE_DEBUG_MARKER_STMTS;
-
- cfun->x_range_query = &global_ranges;
}
/* This is like allocate_struct_function, but pushes a new cfun for FNDECL