Re: LoongArch incorrect codegen for std::byte_swap

2024-07-27 Thread Andrew Pinski via Gcc
On Sat, Jul 27, 2024 at 3:37 PM pifminns deettnta via Gcc wrote: > > using uint_least64_t = __UINT_LEAST64_TYPE__; > > uint_least64_t testbswap(uint_least64_t a) noexcept > { >return __builtin_bswap64(a); > } > > clang: > https://godbolt.org/z/z8GTsazf4 > > > _Z9testbswapm: >revb.d $a

gcc-14-20240727 is now available

2024-07-27 Thread GCC Administrator via Gcc
Snapshot gcc-14-20240727 is now available on https://gcc.gnu.org/pub/gcc/snapshots/14-20240727/ and on various mirrors, see https://gcc.gnu.org/mirrors.html for details. This snapshot has been generated from the GCC 14 git branch with the following options: git://gcc.gnu.org/git/gcc.git branch

LoongArch incorrect codegen for std::byte_swap

2024-07-27 Thread pifminns deettnta via Gcc
using uint_least64_t = __UINT_LEAST64_TYPE__; uint_least64_t testbswap(uint_least64_t a) noexcept { return __builtin_bswap64(a); } clang: https://godbolt.org/z/z8GTsazf4 _Z9testbswapm: revb.d $a0, $a0 ret GCC: https://godbolt.org/z/PabfxP9ve _Z9testbswapm: revb.4h $

Re: n3294 - The restrict function attribute as a replacement of the restrict qualifier

2024-07-27 Thread Alejandro Colomar via Gcc
Hi Martin, On Sat, Jul 27, 2024 at 12:59:34AM GMT, Martin Uecker wrote: > Am Samstag, dem 27.07.2024 um 00:26 +0200 schrieb Alejandro Colomar: > > On Sat, Jul 27, 2024 at 12:03:20AM GMT, Martin Uecker wrote: > > > > Maybe if GNU C compilers (GCC and Clang) add it first as an extension, > > > > add