aboutsummaryrefslogtreecommitdiff
path: root/gcc/c/c-decl.cc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2024-01-20 21:09:28 +0000
committerJonathan Wakely <jwakely@redhat.com>2024-01-31 09:42:38 +0000
commit86302e1a76a4af29b4de401685d3822f3eb96899 (patch)
treee62efdecdecbb51e693054117cf0bc9cb4071b7a /gcc/c/c-decl.cc
parent924137b9012cee5603482242de08fbf0b2030f6a (diff)
downloadgcc-86302e1a76a4af29b4de401685d3822f3eb96899.zip
gcc-86302e1a76a4af29b4de401685d3822f3eb96899.tar.gz
gcc-86302e1a76a4af29b4de401685d3822f3eb96899.tar.bz2
libstdc++: Fix -Wshift-count-overflow warning in std::bitset
This shift only happens if the unsigned long long type is wider than unsigned long but the compiler warns when it sees the shift, without caring if it's reachable. Use the preprocessor to compare the sizes and just reuse _M_to_ulong() if sizeof(long) == sizeof(long long). libstdc++-v3/ChangeLog: * include/std/bitset (_Base_bitset::_M_do_to_ullong): Avoid -Wshift-count-overflow warning.
Diffstat (limited to 'gcc/c/c-decl.cc')
0 files changed, 0 insertions, 0 deletions