]> git.ipfire.org Git - thirdparty/gcc.git/commit
Keep x_range_query NULL for global ranges.
authorAndrew MacLeod <amacleod@redhat.com>
Tue, 9 Nov 2021 14:29:23 +0000 (09:29 -0500)
committerAndrew MacLeod <amacleod@redhat.com>
Tue, 9 Nov 2021 18:27:42 +0000 (13:27 -0500)
commit56af35de3d11960100996b96034dc9ccd7c75ca3
treecf373ec2c094fa6ef46252f65481e55c65181d27
parent53080c5b4ce3742d20a0aa4643203215f20aadf6
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.
gcc/function.c
gcc/function.h
gcc/gimple-range.cc
gcc/value-query.cc
gcc/value-query.h