summaryrefslogtreecommitdiff
path: root/libstdc++-v3/config
diff options
context:
space:
mode:
authorbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>2001-07-31 01:49:30 +0000
committerbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>2001-07-31 01:49:30 +0000
commit667dec61cad4460a44ef8832ca86b64e963f6a4c (patch)
tree01d4fc1a1d3851ddb45c9e07327939f8ea152ebb /libstdc++-v3/config
parent4f6ef2b3451c69dc014fc9e31af72c890c2ad907 (diff)
downloadgcc-667dec61cad4460a44ef8832ca86b64e963f6a4c.tar.gz
2001-07-30 Benjamin Kosnik <bkoz@redhat.com>
* configure.target: Remove mips from cpu table. * config/cpu/mips/bits/atomicity.h: Remove generic versions. Comment sgidefs include. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44493 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/config')
-rw-r--r--libstdc++-v3/config/cpu/mips/bits/atomicity.h39
1 files changed, 3 insertions, 36 deletions
diff --git a/libstdc++-v3/config/cpu/mips/bits/atomicity.h b/libstdc++-v3/config/cpu/mips/bits/atomicity.h
index d3e7743ef7b..cab43eb0d26 100644
--- a/libstdc++-v3/config/cpu/mips/bits/atomicity.h
+++ b/libstdc++-v3/config/cpu/mips/bits/atomicity.h
@@ -1,4 +1,4 @@
-// Low-level functions for atomic operations. Mips version.
+// Low-level functions for atomic operations. MIPS II version.
// Copyright (C) 2001 Free Software Foundation, Inc.
//
@@ -30,12 +30,11 @@
#ifndef _BITS_ATOMICITY_H
#define _BITS_ATOMICITY_H 1
-#include <sgidefs.h>
+// #include <sgidefs.h>
+// #ifdef (_MIPS_ISA_MIPS2)
typedef int _Atomic_word;
-#if (_MIPS_ISA >= _MIPS_ISA_MIPS2)
-
static inline int
__attribute__ ((unused))
__exchange_and_add (volatile _Atomic_word *__mem, int __val)
@@ -103,36 +102,4 @@ __compare_and_swap (volatile long int *__p, long int __oldval,
return __ret;
}
-#else /* (_MIPS_ISA >= _MIPS_ISA_MIPS2) */
-
-static inline int
-__attribute__ ((unused))
-__exchange_and_add (volatile _Atomic_word *__mem, int __val)
-{
- int __result = *__mem;
- *__mem += __val;
- return __result;
-}
-
-static inline void
-__attribute__ ((unused))
-__atomic_add (volatile _Atomic_word *__mem, int __val)
-{
- *__mem += __val;
-}
-
-static inline int
-__attribute__ ((unused))
-__compare_and_swap (volatile long int *__p, long int __oldval,
- long int __newval)
-{
- if (*__p != __oldval)
- return 0;
-
- *__p = __newval;
- return 1;
-}
-
-#endif /* !(_MIPS_ISA >= _MIPS_ISA_MIPS2) */
-
#endif /* atomicity.h */