]> gcc.gnu.org Git - gcc.git/commit
morello: Adjust odr_types_equivalent_p for capabilities
authorAlex Coplan <alex.coplan@arm.com>
Fri, 18 Mar 2022 11:49:28 +0000 (11:49 +0000)
committerAlex Coplan <alex.coplan@arm.com>
Fri, 20 May 2022 10:52:09 +0000 (11:52 +0100)
commit68235c7e93261efd4be7f6a0e9a9d005b412880a
tree9f19a514ad0feff5cb32e56c829f64124cf699c7
parent291268154c24266ac510e8606b0466d56ff1a8d5
morello: Adjust odr_types_equivalent_p for capabilities

Here we update the simple scalar case of odr_types_equivalent_p to also
handle INTCAP_TYPEs and use TYPE_CAP_PRECISION when checking for
precision mismatches.  If the types disagree on their TYPE_CAP_PRECISION
(e.g. if one is a capability pointer and the other is a non-capability
pointer), then they cannot be ODR equivalent.

gcc/ChangeLog:

* ipa-devirt.c (odr_types_equivalent_p): Also handle
INTCAP_TYPE, use TYPE_CAP_PRECISION in scalar base case.
gcc/ipa-devirt.c
This page took 0.064373 seconds and 6 git commands to generate.