[build] Move gthr to toplevel libgcc

Rainer Orth ro@CeBiTec.Uni-Bielefeld.DE
Tue Aug 9 12:30:00 GMT 2011


Hans-Peter Nilsson <hp@bitrange.com> writes:

> On Mon, 8 Aug 2011, Rainer Orth wrote:
>> * SUPPORTS_WEAK is probably best detected with autoconf.  We have
>>   libgfortran/acinclude.m4 (LIBGFOR_GTHREAD_WEAK), but should probably
>>   go for m4/ax_sys_weak_alias.m4 from the autoconf-archive instead.  If
>>   we're lucky, that macro can detect support for weak definitions and
>>   replace both SUPPORTS_WEAK and GTHREAD_USE_WEAK.
>>
>>   We have only 2 non-default definitions right now:
>>
>>   config/avr/avr.h	#define SUPPORTS_WEAK 1
>>   config/cris/cris.h	#define SUPPORTS_WEAK 1
>>
>>   I have no idea why they are made explicit; both are already correct
>>   from the default in elfos.h (ASM_WEAKEN_LABEL) from what I can see.
>
> For CRIS, history, IIRC.  There used to be a cris-aout port as
> well, which mattered in some way, and even a unified
> elf-and-a.out-port.  Possibly the default SUPPORTS_WEAK was
> different too then.

I see, thanks.  I'll probably just remove it when I get around to the
macro part of the gthr move, unless you beat me to it.

	Rainer

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University



More information about the Gcc-patches mailing list