]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
configure.target: Remove mips from cpu table.
authorBenjamin Kosnik <bkoz@redhat.com>
Tue, 31 Jul 2001 01:49:30 +0000 (01:49 +0000)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Tue, 31 Jul 2001 01:49:30 +0000 (01:49 +0000)
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.

From-SVN: r44493

libstdc++-v3/ChangeLog
libstdc++-v3/config/cpu/mips/bits/atomicity.h
libstdc++-v3/configure.target

index 37a8457dfe068e7e11698dab1d473b544cb5f0d0..f39011ea780ba29250196bc0273e33bd787957d5 100644 (file)
@@ -1,3 +1,9 @@
+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.
+       
 2001-07-25  H.J. Lu <hjl@gnu.org>
 
        * configure.target (cpu_include_dir): Set to `config/cpu/mips'
index d3e7743ef7b944547cf123d88e5e8ecc06ed0605..cab43eb0d26671e60ee320f27b7f57604e948970 100644 (file)
@@ -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.
 //
 #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 */
index 6d6259ceb2866ac76c796c397849012f6ef2c751..5e619d039f5ddfce84685e880328d7fa7219644b 100644 (file)
@@ -39,9 +39,6 @@ case "${target_cpu}" in
   i486 | i586 | i686 | i786)
     cpu_include_dir="config/cpu/i486"
     ;;
-  mips*)
-    cpu_include_dir="config/cpu/mips"
-    ;;
   powerpc | rs6000)
     cpu_include_dir="config/cpu/powerpc"
     ;;