aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2021-08-23 13:12:24 +0100
committerJonathan Wakely <jwakely@redhat.com>2021-08-23 14:45:00 +0100
commitda6ce351069bda74d814b723934008d75bd4e8b0 (patch)
tree2d9a2c128877375521ca94a0582099f9b6e18323 /gcc
parentbc97e736a5597ac1545b7f9069472117b6caa867 (diff)
downloadgcc-da6ce351069bda74d814b723934008d75bd4e8b0.zip
gcc-da6ce351069bda74d814b723934008d75bd4e8b0.tar.gz
gcc-da6ce351069bda74d814b723934008d75bd4e8b0.tar.bz2
libstdc++: Use __builtin_expect in __dynamic_cast
The null pointer check is never needed for correct code, only to gracefully handle undefined cases. Add __builtin_expect to be sure that we don't pessimize the valid uses. libstdc++-v3/ChangeLog: * libsupc++/dyncast.cc (__dynamic_cast): Add __builtin_expect to precondition check.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions