This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: PATCH: Support MIPS II
On Wed, May 08, 2002 at 11:20:23AM -0500, Benjamin Kosnik wrote:
>
> one file:
> > #ifndef _BITS_ATOMICITY_H
> >
> > #ifdef _MIPS_ISA
> >
> > #include <sgidefs.h>
>
> second file:
> > #if _MIPS_ISA >= _MIPS_ISA_MIPS2
> >
> > #define _BITS_ATOMICITY_H 1
> >
> > asm for MIPS 2.
> >
> > #endif /* _MIPS_ISA >= _MIPS_ISA_MIPS2 */
> >
> > #endif /* !_MIPS_ISA */
> >
>
> generic file:
> > #ifndef _BITS_ATOMICITY_H
> >
> > #define _BITS_ATOMICITY_H 1
> >
> > generic version
> >
> > #endif
> >
What are those? The content of atomicity.h is decided at the gcc runtime
for mips. What are those files for? How are they used at the gcc runtime?
>
> see how i386/i486 are done.
>
I don't follow you. Can you tell me why there is i486/bits/atomicity.h? On
gcc 3.1 branch:
diff -upr i486/bits/atomicity.h i386/bits/atomicity.h
--- i486/bits/atomicity.h Fri Oct 5 20:46:34 2001
+++ i386/bits/atomicity.h Tue Feb 27 16:14:15 2001
@@ -1,4 +1,4 @@
-// Low-level functions for atomic operations: x86, x >= 4 version -*- C++ -*-
+// Low-level functions for atomic operations: x86, x < 4 version -*- C++ -*-
// Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
//
@@ -55,3 +55,5 @@ __atomic_add (volatile _Atomic_word* __m
#endif /* atomicity.h */
+
+
Besides, you can't compare x86 with MIPS. There is no _X86_ISA for x86 and
there are no mips[1|2|...]-*-* configurations.
H.J.