diff options
author | tijl <tijl@FreeBSD.org> | 2010-09-07 08:33:17 +0000 |
---|---|---|
committer | tijl <tijl@FreeBSD.org> | 2010-09-07 08:33:17 +0000 |
commit | 697336483fab365dfc2bd038bcbe1d41a9ade693 (patch) | |
tree | 64dd7aa0b0dbb319f07666eb4b6cf758c7de9574 /gnu/lib/libstdc++/config.h | |
parent | 1137e0153efce87e436114c627d6e2aabd3f4f92 (diff) | |
download | FreeBSD-src-697336483fab365dfc2bd038bcbe1d41a9ade693.zip FreeBSD-src-697336483fab365dfc2bd038bcbe1d41a9ade693.tar.gz |
GCC defines built-ins for atomic instructions found on i486 and higher.
Because FreeBSD no longer supports the 80386 cpu all code targeting
FreeBSD/i386 necessarily runs on i486 or higher so the compiler
built-ins can be used by default inside libstdc++ and in C++ headers.
This allows newly compiled C++ code to inline some atomic operations.
Old binaries continue to use libstdc++ functions.
PR: 148926
Tested by: Yuri Karaban <tech askold net>
Reviewed by: kan
Approved by: kib (mentor)
MFC after: 2 weeks
Diffstat (limited to 'gnu/lib/libstdc++/config.h')
-rw-r--r-- | gnu/lib/libstdc++/config.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/lib/libstdc++/config.h b/gnu/lib/libstdc++/config.h index de4641d..8bc099f 100644 --- a/gnu/lib/libstdc++/config.h +++ b/gnu/lib/libstdc++/config.h @@ -671,7 +671,7 @@ /* #undef VERSION */ /* Define if builtin atomic operations are supported on this host. */ -#if defined(__amd64__) +#if defined(__amd64__) || defined(__i386__) #define _GLIBCXX_ATOMIC_BUILTINS 1 #endif |