Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/gpl3/gcc/dist/libstdc++-v3/src/c++11 Attribute targ...
details: https://anonhg.NetBSD.org/src/rev/342359cbb110
branches: trunk
changeset: 332638:342359cbb110
user: joerg <joerg%NetBSD.org@localhost>
date: Wed Oct 01 22:18:19 2014 +0000
description:
Attribute target is not supported by clang, so don't use it.
Explicitly mark this function as non-inline to not defeat the feature
tests.
diffstat:
external/gpl3/gcc/dist/libstdc++-v3/src/c++11/random.cc | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diffs (14 lines):
diff -r 03fbf0141aff -r 342359cbb110 external/gpl3/gcc/dist/libstdc++-v3/src/c++11/random.cc
--- a/external/gpl3/gcc/dist/libstdc++-v3/src/c++11/random.cc Wed Oct 01 21:14:58 2014 +0000
+++ b/external/gpl3/gcc/dist/libstdc++-v3/src/c++11/random.cc Wed Oct 01 22:18:19 2014 +0000
@@ -54,7 +54,10 @@
#if (defined __i386__ || defined __x86_64__) && defined _GLIBCXX_X86_RDRAND
unsigned int
+ __attribute__ ((noinline))
+# ifndef __clang__
__attribute__ ((target("rdrnd")))
+# endif
__x86_rdrand(void)
{
unsigned int retries = 100;
Home |
Main Index |
Thread Index |
Old Index