This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Disable libgcj and gprof on Linux/mips
On Wed, Jul 25, 2001 at 11:13:35AM -0600, Tom Tromey wrote:
> >>>>> "HJ" == H J Lu <hjl@lucon.org> writes:
>
> HJ> I don't think you can compile libgcj on any mips target today.
>
> Rainer Orth has been doing a lot of work to get libgcj to build on
> Irix 6.5. That's a MIPS box.
I don't think so. boehm-gc/include/private/gc_locks.h is wrong for
mips:
# ifdef MIPS
# if __mips < 3 || !(defined (_ABIN32) || defined(_ABI64)) \
|| !defined(_COMPILER_VERSION) || _COMPILER_VERSION < 700
# define GC_test_and_set(addr, v) test_and_set(addr,v)
# else
# define GC_test_and_set(addr, v) __test_and_set(addr,v)
# define GC_clear(addr) __lock_release(addr);
# define GC_CLEAR_DEFINED
# endif
# define GC_TEST_AND_SET_DEFINED
# endif /* MIPS */
There are 2 problems:
1. It shouldn't check __mips since it is just defined as 1. It should
do
#include <sgidefs.h>
and check _MIPS_ISA < _MIPS_ISA_MIPS3
2. GC_test_and_set takes 1 arg, not 2. It should do
# define GC_test_and_set(addr) test_and_set(addr,v)
# define GC_test_and_set(addr) __test_and_set(addr,1)
I am not sure if it will work on IRIX 6.5 after those changes. My
IRIX 6.5 is too slow to check it out :-(.
H.J.