diff options
author | Richard Biener <rguenther@suse.de> | 2024-05-23 11:26:14 +0200 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2024-05-23 14:38:48 +0200 |
commit | 61f5b3c59ed20438d7d9918d7a83d29a21097d4e (patch) | |
tree | 67d1c58ba74a518dbfee1ca19c6fa7bd60f2a237 /gcc/cp/tree.cc | |
parent | 4efa7ec85a85c6024d0907a0e735ad5df7fca952 (diff) | |
download | gcc-61f5b3c59ed20438d7d9918d7a83d29a21097d4e.zip gcc-61f5b3c59ed20438d7d9918d7a83d29a21097d4e.tar.gz gcc-61f5b3c59ed20438d7d9918d7a83d29a21097d4e.tar.bz2 |
tree-optimization/115138 - ptr-vs-ptr and FUNCTION_DECLs
I failed to realize we do not represent FUNCTION_DECLs or LABEL_DECLs
in vars explicitly and thus have to compare pt.vars_contains_nonlocal.
PR tree-optimization/115138
* tree-ssa-alias.cc (ptrs_compare_unequal): Make sure
pt.vars_contains_nonlocal differs since we do not represent
FUNCTION_DECLs or LABEL_DECLs in vars explicitly.
* gcc.dg/torture/pr115138.c: New testcase.
Diffstat (limited to 'gcc/cp/tree.cc')
0 files changed, 0 insertions, 0 deletions