aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.h
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2022-04-12 16:40:14 -0400
committerJason Merrill <jason@redhat.com>2022-04-12 16:46:58 -0400
commit791a968630b3846b614a435b9a75a52f29147a08 (patch)
treefb889e28e630935e2f7225ec32daf7be64068db6 /gcc/tree.h
parent164c6a1c5d7f99235f1a41440eacac7a977e8fbd (diff)
downloadgcc-791a968630b3846b614a435b9a75a52f29147a08.zip
gcc-791a968630b3846b614a435b9a75a52f29147a08.tar.gz
gcc-791a968630b3846b614a435b9a75a52f29147a08.tar.bz2
c++: local function versioning [PR104669]
There were two problems with this testcase: we weren't copying the target attribute from the second declaration to the global alias for the first one (duplicate_decls hunk), and then we were treating the third one as matching the earlier one even though both are versioned (decls_match hunk). The latter change required a fix to find_last_decl (used for attribute mismatch warnings) to give up if we see a versioned function, as in that case we can't determine whether the decls match, because we are still in the process of setting the attributes on the new decl. PR c++/104669 gcc/cp/ChangeLog: * decl.cc (decls_match): Compare versions even if not recording. (duplicate_decls): Propagate attributes to alias. * decl2.cc (find_last_decl): Give up if versioned. gcc/testsuite/ChangeLog: * g++.target/i386/mv31.C: New test.
Diffstat (limited to 'gcc/tree.h')
0 files changed, 0 insertions, 0 deletions