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__.
This commit is contained in:
Jonathan Wakely 2021-11-09 09:34:23 +00:00
parent 3439657b02
commit d9ebf0ce08

View File

@ -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