[cft] configure tests for .hidden

Loren James Rittle rittle@latour.rsch.comm.mot.com
Tue Apr 30 21:38:00 GMT 2002


In article <20020430194329.F3288@redhat.com>,
Richard Henderson<rth@redhat.com> writes:

> New patch with Loren's comments.

I applied your latest patch to my 3.1 tree; rebuilt gcc/configure and
verified it correctly detected working ld features (it had one
remaining niggle when no date was found, see insert below):

On i386-unknown-freebsd4.5 with binutils 2.11.2, system copy:

; gcc-3.1/configure --with-ld\=/usr/bin/ld --with-as\=/usr/bin/as

checking assembler hidden support... no
checking linker PT_GNU_EH_FRAME support... no

On i386-unknown-freebsd4.5 with binutils 2.12, FSF tar image release:

; gcc-3.1/configure --with-ld\=/usr/local/bin/ld --with-as\=/usr/local/bin/as

checking assembler hidden support... test: 0GNU ld version 2.12: bad number
yes

[I updating your patch by adding -n to the sed option and p to the end
 of sed command; like I originally sent you.  ;-)  This idiom is
 already used in that file so I assume it is portable.  This handles
 the case where no date was found on the ld version report.]

checking assembler hidden support... no
checking linker PT_GNU_EH_FRAME support... yes
checking whether linker eh_frame optimizations work properly... no

On i386-unknown-freebsd4.5 with binutils 2.12.X, taken after fix from
FSF tree:

; gcc-3.1/configure --with-ld\=/usr/local/beta-gcc/bin/ld --with-as\=/usr/local/beta-gcc/bin/as

checking assembler hidden support... yes
checking linker PT_GNU_EH_FRAME support... yes
checking whether linker eh_frame optimizations work properly... yes

On alpha-unknown-freebsd5.0 with binutils 2.12.X, taken before fix
from FSF tree, system copy:

; gcc-3.1/configure --with-ld\=/usr/bin/ld --with-as\=/usr/bin/as

checking assembler hidden support... no
checking linker PT_GNU_EH_FRAME support... yes
checking whether linker eh_frame optimizations work properly... yes
# last line might be suspect, but this is an unreleased

On i386-unknown-freebsd5.0 with binutils 2.12.X, taken before fix from
FSF tree, system copy:

; gcc-3.1/configure --with-ld\=/usr/bin/ld --with-as\=/usr/bin/as

checking assembler hidden support... no
checking linker PT_GNU_EH_FRAME support... yes
checking whether linker eh_frame optimizations work properly... no

This is all the versions of binutils, I can readily test in this
environment.

Regards,
Loren



More information about the Gcc-patches mailing list