aarch64: Fix build against libc++ in c++11 mode [PR113763]
commitdf9f6b934886f51c0c07220d1ee38874b69646c7
authorJakub Jelinek <jakub@redhat.com>
Tue, 6 Feb 2024 14:56:50 +0000 (6 15:56 +0100)
committerJakub Jelinek <jakub@redhat.com>
Tue, 6 Feb 2024 14:56:50 +0000 (6 15:56 +0100)
tree0d031281e6a0532598f33b3d37f39527042b7761
parent68a8ec7c7404db6fce1be307a3d8bdde6cdbc6fb
aarch64: Fix build against libc++ in c++11 mode [PR113763]

std::pair ctor used in tiles constexpr variable is only constexpr in C++14
and later, it works with libstdc++ because it is marked constexpr there even
in C++11 mode.

The following patch fixes it by using an unnamed local class instead of
std::pair, and additionally changes the first element from unsigned int to
unsigned char because 0xff has to fit into unsigned char on all hosts.

2024-02-06  Jakub Jelinek  <jakub@redhat.com>

PR target/113763
* config/aarch64/aarch64.cc (aarch64_output_sme_zero_za): Change tiles
element from std::pair<unsigned int, char> to an unnamed struct.
Adjust uses of tile range variable.
gcc/config/aarch64/aarch64.cc