aboutsummaryrefslogtreecommitdiff
path: root/libgo
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2020-09-22 21:06:32 +0200
committerJakub Jelinek <jakub@redhat.com>2020-09-22 21:08:02 +0200
commitbc13106e0414b86af8f6878e7681e6a959921b9e (patch)
tree0d5cd7575d2446eb14fd507d7791cf9f9cbbe234 /libgo
parent49ff88bd0d8a36a9e903f01ce05685cfe07dee5d (diff)
downloadgcc-bc13106e0414b86af8f6878e7681e6a959921b9e.zip
gcc-bc13106e0414b86af8f6878e7681e6a959921b9e.tar.gz
gcc-bc13106e0414b86af8f6878e7681e6a959921b9e.tar.bz2
c++: Ignore __sanitizer_ptr_{sub,cmp} builtin calls during constant expression evaluation [PR97145]
These two builtin calls are added already during parsing before pointer subtractions or comparisons, normally they perform runtime verification of whether the pointers point to the same object or different objects, but during constant expressione valuation we don't really need those builtins for anything. 2020-09-22 Jakub Jelinek <jakub@redhat.com> PR c++/97145 * constexpr.c (cxx_eval_builtin_function_call): Return void_node for calls to __sanitize_ptr_{sub,cmp} builtins. * g++.dg/asan/pr97145.C: New test.
Diffstat (limited to 'libgo')
0 files changed, 0 insertions, 0 deletions