public inbox for libstdc++-cvs@sourceware.org help / color / mirror / Atom feed
From: Jonathan Wakely <redi@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc r12-5057] libstdc++: Do not use 64-bit DARN on 32-bit powerpc [PR103146] Date: Tue, 9 Nov 2021 15:14:03 +0000 (GMT) [thread overview] Message-ID: <20211109151403.2E6753858C60@sourceware.org> (raw) https://gcc.gnu.org/g:d9ebf0ce0845046cdd0cb40c598072bd1d91362c commit r12-5057-gd9ebf0ce0845046cdd0cb40c598072bd1d91362c Author: Jonathan Wakely <jwakely@redhat.com> Date: Tue Nov 9 09:34:23 2021 +0000 libstdc++: Do not use 64-bit DARN on 32-bit powerpc [PR103146] We need to use the 64-bit DARN to detect failure without bias, but it's not available in 32-bit mode. libstdc++-v3/ChangeLog: PR libstdc++/103146 * src/c++11/random.cc: Check __powerpc64__ not __powerpc__. Diff: --- libstdc++-v3/src/c++11/random.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libstdc++-v3/src/c++11/random.cc b/libstdc++-v3/src/c++11/random.cc index 4a553e0d84f..76857e1efe5 100644 --- a/libstdc++-v3/src/c++11/random.cc +++ b/libstdc++-v3/src/c++11/random.cc @@ -37,7 +37,7 @@ # ifdef _GLIBCXX_X86_RDSEED # define USE_RDSEED 1 # endif -#elif defined __powerpc__ && defined __BUILTIN_CPU_SUPPORTS__ +#elif defined __powerpc64__ && defined __BUILTIN_CPU_SUPPORTS__ # define USE_DARN 1 #endif
reply other threads:[~2021-11-09 15:14 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20211109151403.2E6753858C60@sourceware.org \ --to=redi@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ --cc=libstdc++-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).