]> git.ipfire.org Git - thirdparty/gcc.git/commit
Enable pointer_query caching in -Wrestrict.
authorMartin Sebor <msebor@redhat.com>
Thu, 3 Feb 2022 20:59:39 +0000 (13:59 -0700)
committerMartin Sebor <msebor@redhat.com>
Thu, 3 Feb 2022 20:59:39 +0000 (13:59 -0700)
commit30d15b512e375dee1b288d66c398513b8cb3e2aa
treec7b61bd35b5323b8b7000761cee3270d32f82dda
parenta62b740d7b8bff2d8b5578d01d00e5fe464e5325
Enable pointer_query caching in -Wrestrict.

gcc/ChangeLog:

* gimple-ssa-warn-restrict.cc (class pass_wrestrict): Outline ctor.
(pass_wrestrict::m_ptr_qry): New member.
(wrestrict_walk): Rename...
(pass_wrestrict::check_block): ...to this.
(pass_wrestrict::execute): Set up and tear down pointer_query and
ranger.
(builtin_memref::builtin_memref): Change ctor argument.  Simplify.
(builtin_access::builtin_access): Same.
(builtin_access::m_ptr_qry): New member.
(check_call): Rename...
(pass_wrestrict::check_call): ...to this.
(check_bounds_or_overlap): Change argument.
* gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Same.
gcc/gimple-ssa-warn-restrict.cc
gcc/gimple-ssa-warn-restrict.h