mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
minor tweaks for atomic inc/dec support
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33142 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
417418ef8e
commit
29063b6928
4 changed files with 16984 additions and 2897 deletions
|
@ -1,3 +1,9 @@
|
|||
2011-05-26 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSObject.m: Remove useless leftover #define.
|
||||
* configure.ac: Get -march flag passed to build process
|
||||
* configure: regenerate
|
||||
|
||||
2011-05-26 Niels Grewe <niels.grewe@halbordnung.de>
|
||||
|
||||
* configure.ac: Add test to check for availability of atomic builtins.
|
||||
|
|
|
@ -226,8 +226,6 @@ typedef int32_t volatile *gsatomic_t;
|
|||
|
||||
#define GSATOMICREAD(X) (*(X))
|
||||
|
||||
#define ATOMIC_TESTING 1
|
||||
|
||||
static __inline__ int
|
||||
GSAtomicIncrement(gsatomic_t X)
|
||||
{
|
||||
|
|
|
@ -1038,6 +1038,7 @@ if test "$CC" = "gcc"; then
|
|||
i586*|i686*|i786*)
|
||||
ATOMIC_CFLAGS="-march=i586";
|
||||
CFLAGS="$saved_CFLAGS $ATOMIC_CFLAGS";
|
||||
OBJCFLAGS="$OBJCFLAGS $ATOMIC_CFLAGS";
|
||||
esac
|
||||
AC_MSG_CHECKING([checking whether atomic operations require an external library]);
|
||||
AC_LINK_IFELSE([AC_LANG_PROGRAM([[typedef int atomic;]],
|
||||
|
|
Loading…
Reference in a new issue