This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: 3.0.1 PATCH: Avoid non-PIC code in boehm-gc for Solaris 2/Intel
- To: Richard Henderson <rth at redhat dot com>
- Subject: Re: 3.0.1 PATCH: Avoid non-PIC code in boehm-gc for Solaris 2/Intel
- From: Rainer Orth <ro at TechFak dot Uni-Bielefeld dot DE>
- Date: Wed, 27 Jun 2001 01:25:45 +0200 (MEST)
- Cc: gcc-patches at gcc dot gnu dot org, java-patches at gcc dot gnu dot org, "Hans-J. Boehm" <boehm at acm dot org>
- References: <15160.32848.131824.599234@xayide.TechFak.Uni-Bielefeld.DE><20010626102801.D14150@redhat.com>
Richard Henderson writes:
> This isn't going to work reliably.
>
> Try
>
> #define call_push(REGNAME) \
> { register word reg __asm__( #REGNAME ); GC_push_one (reg); }
>
> #ifndef __PIC__
> call_push(ebx)
> #endif
This should be PIC since this is the only thing libtool defines.
Hans: is boehm-gc expected to work without libtool/autoconf/automake? If
so, it may be necessary to add -DPIC somewhere to the appropriate
Makefile's.
Rainer
-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University
Email: ro@TechFak.Uni-Bielefeld.DE