aboutsummaryrefslogtreecommitdiff
path: root/gcc/value-range.cc
diff options
context:
space:
mode:
authorDavid Faust <david.faust@oracle.com>2022-08-29 11:21:52 -0700
committerDavid Faust <david.faust@oracle.com>2022-08-29 13:45:47 -0700
commitb504149d2c92ddfcfab62ea6d1ed49ae72493e38 (patch)
tree1e3fd59944faf25342b64c82e0621dcf90df7540 /gcc/value-range.cc
parentc68b5c078bbf167e6ab84fc230a53580dcc651db (diff)
downloadgcc-b504149d2c92ddfcfab62ea6d1ed49ae72493e38.zip
gcc-b504149d2c92ddfcfab62ea6d1ed49ae72493e38.tar.gz
gcc-b504149d2c92ddfcfab62ea6d1ed49ae72493e38.tar.bz2
bpf: handle anonymous members in CO-RE reloc [PR106745]
The old method for computing a member index for a CO-RE relocation relied on a name comparison, which could SEGV if the member in question is itself part of an anonymous inner struct or union. This patch changes the index computation to not rely on a name, while maintaining the ability to account for other sibling fields which may not have a representation in BTF. gcc/ChangeLog: PR target/106745 * config/bpf/coreout.cc (bpf_core_get_sou_member_index): Fix computation of index for anonymous members. gcc/testsuite/ChangeLog: PR target/106745 * gcc.target/bpf/core-pr106745.c: New test.
Diffstat (limited to 'gcc/value-range.cc')
0 files changed, 0 insertions, 0 deletions