diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2019-07-22 17:53:36 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2019-07-22 17:53:36 +0100 |
commit | f35da524a26d82cb1aa4a71ce48f92c64d506658 (patch) | |
tree | 151353c32171fc0dc81dedc048464a67cf0a03b6 /gcc/cgraph.c | |
parent | 281ab2fbff7398643352e86fcddc83098efd6310 (diff) | |
download | gcc-f35da524a26d82cb1aa4a71ce48f92c64d506658.zip gcc-f35da524a26d82cb1aa4a71ce48f92c64d506658.tar.gz gcc-f35da524a26d82cb1aa4a71ce48f92c64d506658.tar.bz2 |
Adjust std::rotl, std::rotr etc to match final P0553R4 proposal
This proposal has now been accepted for C++20, with a few changes. This
patch adjusts std::rotl and std::rotr to match the final specification
and declares the additions for C++2a mode even when __STRICT_ANSI__ is
defined.
* include/std/bit (__rotl, __rotr): Change second parameter from
unsigned int to int and handle negative values.
(rotl, rotr): Remove check for __STRICT_ANSI__. Change second
parameter from unsigned int to int. Add nodiscard attribute.
* testsuite/26_numerics/bit/bitops.rot/rotl.cc: Rename to ...
* testsuite/26_numerics/bit/bit.rotate/rotl.cc: Here. Test negative
shifts.
* testsuite/26_numerics/bit/bitops.rot/rotr.cc: Rename to ...
* testsuite/26_numerics/bit/bit.rotate/rotr.cc: Here. Test negative
shifts.
From-SVN: r273706
Diffstat (limited to 'gcc/cgraph.c')
0 files changed, 0 insertions, 0 deletions