configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with target-independent gnu binutils date test.
* configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with target-independent gnu binutils date test. From-SVN: r53017
This commit is contained in:
parent
2150ad33f2
commit
c72931a655
3 changed files with 68 additions and 25 deletions
|
@ -1,3 +1,8 @@
|
|||
2002-05-01 Richard Henderson <rth@redhat.com>
|
||||
|
||||
* configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
|
||||
target-independent gnu binutils date test.
|
||||
|
||||
2002-05-01 Richard Henderson <rth@redhat.com>
|
||||
|
||||
* cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
|
||||
|
|
66
gcc/configure
vendored
66
gcc/configure
vendored
|
@ -6868,6 +6868,7 @@ elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
|
|||
done
|
||||
gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
|
||||
gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
|
||||
gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
|
||||
fi
|
||||
|
||||
if test "x$gcc_cv_as" = x; then
|
||||
|
@ -6937,7 +6938,7 @@ fi
|
|||
|
||||
# Figure out what linker we will be using.
|
||||
echo $ac_n "checking what linker to use""... $ac_c" 1>&6
|
||||
echo "configure:6941: checking what linker to use" >&5
|
||||
echo "configure:6942: checking what linker to use" >&5
|
||||
gcc_cv_ld=
|
||||
gcc_cv_gld_major_version=
|
||||
gcc_cv_gld_minor_version=
|
||||
|
@ -7030,7 +7031,7 @@ fi
|
|||
|
||||
# Figure out what nm we will be using.
|
||||
echo $ac_n "checking what nm to use""... $ac_c" 1>&6
|
||||
echo "configure:7034: checking what nm to use" >&5
|
||||
echo "configure:7035: checking what nm to use" >&5
|
||||
if test -x nm$host_exeext; then
|
||||
gcc_cv_nm=./nm$host_exeext
|
||||
elif test "x$program_prefix" != xNONE; then
|
||||
|
@ -7042,7 +7043,7 @@ echo "$ac_t""$gcc_cv_nm" 1>&6
|
|||
|
||||
# Figure out what objdump we will be using.
|
||||
echo $ac_n "checking what objdump to use""... $ac_c" 1>&6
|
||||
echo "configure:7046: checking what objdump to use" >&5
|
||||
echo "configure:7047: checking what objdump to use" >&5
|
||||
if test -x objdump$host_exeext; then
|
||||
gcc_cv_objdump=./objdump$host_exeext
|
||||
elif test "x$program_prefix" != xNONE; then
|
||||
|
@ -7054,7 +7055,7 @@ echo "$ac_t""$gcc_cv_objdump" 1>&6
|
|||
|
||||
# Figure out what assembler alignment features are present.
|
||||
echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
|
||||
echo "configure:7058: checking assembler alignment features" >&5
|
||||
echo "configure:7059: checking assembler alignment features" >&5
|
||||
gcc_cv_as_alignment_features=none
|
||||
if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
|
||||
# Gas version 2.6 and later support for .balign and .p2align.
|
||||
|
@ -7102,7 +7103,7 @@ fi
|
|||
echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
|
||||
|
||||
echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
|
||||
echo "configure:7106: checking assembler subsection support" >&5
|
||||
echo "configure:7107: checking assembler subsection support" >&5
|
||||
gcc_cv_as_subsections=no
|
||||
if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
|
||||
if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 9 -o "$gcc_cv_gas_major_version" -gt 2 && grep 'obj_format = elf' ../gas/Makefile > /dev/null; then
|
||||
|
@ -7142,7 +7143,7 @@ fi
|
|||
echo "$ac_t""$gcc_cv_as_subsections" 1>&6
|
||||
|
||||
echo $ac_n "checking assembler weak support""... $ac_c" 1>&6
|
||||
echo "configure:7146: checking assembler weak support" >&5
|
||||
echo "configure:7147: checking assembler weak support" >&5
|
||||
gcc_cv_as_weak=no
|
||||
if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
|
||||
if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 2 -o "$gcc_cv_gas_major_version" -gt 2; then
|
||||
|
@ -7165,10 +7166,16 @@ fi
|
|||
echo "$ac_t""$gcc_cv_as_weak" 1>&6
|
||||
|
||||
echo $ac_n "checking assembler hidden support""... $ac_c" 1>&6
|
||||
echo "configure:7169: checking assembler hidden support" >&5
|
||||
echo "configure:7170: checking assembler hidden support" >&5
|
||||
gcc_cv_as_hidden=no
|
||||
if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
|
||||
if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 10 -o "$gcc_cv_gas_major_version" -gt 2 && grep 'obj_format = elf' ../gas/Makefile > /dev/null; then
|
||||
if test "$gcc_cv_gas_major_version" -eq 2 \
|
||||
-a "$gcc_cv_gas_minor_version" -eq 12 \
|
||||
-a "$gcc_cv_gas_patch_version" -ge 1 \
|
||||
-o "$gcc_cv_gas_major_version" -eq 2 \
|
||||
-a "$gcc_cv_gas_minor_version" -gt 12 \
|
||||
-o "$gcc_cv_gas_major_version" -gt 2 \
|
||||
&& grep 'obj_format = elf' ../gas/Makefile > /dev/null; then
|
||||
gcc_cv_as_hidden="yes"
|
||||
fi
|
||||
elif test x$gcc_cv_as != x; then
|
||||
|
@ -7179,6 +7186,17 @@ elif test x$gcc_cv_as != x; then
|
|||
gcc_cv_as_hidden="yes"
|
||||
fi
|
||||
rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
|
||||
|
||||
# GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
|
||||
# This is irritatingly difficult to feature test for. Look for
|
||||
# the date string after the version number.
|
||||
ld_ver=`$gcc_cv_ld --version 2>/dev/null | head -1`
|
||||
if echo "$ld_ver" | grep GNU > /dev/null; then
|
||||
ld_date=`echo $ld_ver | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)[-]*\([01][0-9]\)[-]*\([0-3][0-9]\).*$,\1\2\3,;p'`
|
||||
if test 0"$ld_date" -lt 20020404; then
|
||||
gcc_cv_as_hidden="no"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
if test x"$gcc_cv_as_hidden" = xyes; then
|
||||
cat >> confdefs.h <<\EOF
|
||||
|
@ -7191,7 +7209,7 @@ libgcc_visibility=$gcc_cv_as_hidden
|
|||
|
||||
|
||||
echo $ac_n "checking assembler leb128 support""... $ac_c" 1>&6
|
||||
echo "configure:7195: checking assembler leb128 support" >&5
|
||||
echo "configure:7213: checking assembler leb128 support" >&5
|
||||
gcc_cv_as_leb128=no
|
||||
if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
|
||||
if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 11 -o "$gcc_cv_gas_major_version" -gt 2 && grep 'obj_format = elf' ../gas/Makefile > /dev/null; then
|
||||
|
@ -7236,7 +7254,7 @@ fi
|
|||
echo "$ac_t""$gcc_cv_as_leb128" 1>&6
|
||||
|
||||
echo $ac_n "checking assembler eh_frame optimization""... $ac_c" 1>&6
|
||||
echo "configure:7240: checking assembler eh_frame optimization" >&5
|
||||
echo "configure:7258: checking assembler eh_frame optimization" >&5
|
||||
gcc_cv_as_eh_frame=no
|
||||
if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
|
||||
if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 12 -o "$gcc_cv_gas_major_version" -gt 2 && grep 'obj_format = elf' ../gas/Makefile > /dev/null; then
|
||||
|
@ -7317,7 +7335,7 @@ fi
|
|||
echo "$ac_t""$gcc_cv_as_eh_frame" 1>&6
|
||||
|
||||
echo $ac_n "checking assembler section merging support""... $ac_c" 1>&6
|
||||
echo "configure:7321: checking assembler section merging support" >&5
|
||||
echo "configure:7339: checking assembler section merging support" >&5
|
||||
gcc_cv_as_shf_merge=no
|
||||
if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
|
||||
if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 12 -o "$gcc_cv_gas_major_version" -gt 2 && grep 'obj_format = elf' ../gas/Makefile > /dev/null; then
|
||||
|
@ -7343,7 +7361,7 @@ case "$target" in
|
|||
# All TARGET_ABI_OSF targets.
|
||||
alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
|
||||
echo $ac_n "checking assembler supports explicit relocations""... $ac_c" 1>&6
|
||||
echo "configure:7347: checking assembler supports explicit relocations" >&5
|
||||
echo "configure:7365: checking assembler supports explicit relocations" >&5
|
||||
if eval "test \"`echo '$''{'gcc_cv_as_explicit_relocs'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
|
@ -7393,7 +7411,7 @@ EOF
|
|||
;;
|
||||
sparc*-*-*)
|
||||
echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6
|
||||
echo "configure:7397: checking assembler .register pseudo-op support" >&5
|
||||
echo "configure:7415: checking assembler .register pseudo-op support" >&5
|
||||
if eval "test \"`echo '$''{'gcc_cv_as_register_pseudo_op'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
|
@ -7421,7 +7439,7 @@ EOF
|
|||
fi
|
||||
|
||||
echo $ac_n "checking assembler supports -relax""... $ac_c" 1>&6
|
||||
echo "configure:7425: checking assembler supports -relax" >&5
|
||||
echo "configure:7443: checking assembler supports -relax" >&5
|
||||
if eval "test \"`echo '$''{'gcc_cv_as_relax_opt'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
|
@ -7449,7 +7467,7 @@ EOF
|
|||
fi
|
||||
|
||||
echo $ac_n "checking assembler and linker support unaligned pc related relocs""... $ac_c" 1>&6
|
||||
echo "configure:7453: checking assembler and linker support unaligned pc related relocs" >&5
|
||||
echo "configure:7471: checking assembler and linker support unaligned pc related relocs" >&5
|
||||
if eval "test \"`echo '$''{'gcc_cv_as_sparc_ua_pcrel'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
|
@ -7476,7 +7494,7 @@ EOF
|
|||
fi
|
||||
|
||||
echo $ac_n "checking assembler and linker support unaligned pc related relocs against hidden symbols""... $ac_c" 1>&6
|
||||
echo "configure:7480: checking assembler and linker support unaligned pc related relocs against hidden symbols" >&5
|
||||
echo "configure:7498: checking assembler and linker support unaligned pc related relocs against hidden symbols" >&5
|
||||
if eval "test \"`echo '$''{'gcc_cv_as_sparc_ua_pcrel_hidden'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
|
@ -7517,7 +7535,7 @@ EOF
|
|||
|
||||
if test "x$gcc_cv_as_flags64" != xno; then
|
||||
echo $ac_n "checking for assembler offsetable %lo() support""... $ac_c" 1>&6
|
||||
echo "configure:7521: checking for assembler offsetable %lo() support" >&5
|
||||
echo "configure:7539: checking for assembler offsetable %lo() support" >&5
|
||||
if eval "test \"`echo '$''{'gcc_cv_as_offsetable_lo10'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
|
@ -7557,7 +7575,7 @@ EOF
|
|||
|
||||
i[34567]86-*-* | x86_64-*-*)
|
||||
echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
|
||||
echo "configure:7561: checking assembler instructions" >&5
|
||||
echo "configure:7579: checking assembler instructions" >&5
|
||||
gcc_cv_as_instructions=
|
||||
if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
|
||||
if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 9 -o "$gcc_cv_gas_major_version" -gt 2; then
|
||||
|
@ -7584,7 +7602,7 @@ EOF
|
|||
echo "$ac_t""$gcc_cv_as_instructions" 1>&6
|
||||
|
||||
echo $ac_n "checking assembler GOTOFF in data directives""... $ac_c" 1>&6
|
||||
echo "configure:7588: checking assembler GOTOFF in data directives" >&5
|
||||
echo "configure:7606: checking assembler GOTOFF in data directives" >&5
|
||||
gcc_cv_as_gotoff_in_data=no
|
||||
if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x
|
||||
then
|
||||
|
@ -7614,7 +7632,7 @@ EOF
|
|||
esac
|
||||
|
||||
echo $ac_n "checking assembler dwarf2 debug_line support""... $ac_c" 1>&6
|
||||
echo "configure:7618: checking assembler dwarf2 debug_line support" >&5
|
||||
echo "configure:7636: checking assembler dwarf2 debug_line support" >&5
|
||||
gcc_cv_as_dwarf2_debug_line=no
|
||||
# ??? Not all targets support dwarf2 debug_line, even within a version
|
||||
# of gas. Moreover, we need to emit a valid instruction to trigger any
|
||||
|
@ -7670,7 +7688,7 @@ fi
|
|||
echo "$ac_t""$gcc_cv_as_dwarf2_debug_line" 1>&6
|
||||
|
||||
echo $ac_n "checking assembler --gdwarf2 support""... $ac_c" 1>&6
|
||||
echo "configure:7674: checking assembler --gdwarf2 support" >&5
|
||||
echo "configure:7692: checking assembler --gdwarf2 support" >&5
|
||||
gcc_cv_as_gdwarf2_flag=no
|
||||
if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x;
|
||||
then
|
||||
|
@ -7699,7 +7717,7 @@ fi
|
|||
echo "$ac_t""$gcc_cv_as_gdwarf2_flag" 1>&6
|
||||
|
||||
echo $ac_n "checking assembler --gstabs support""... $ac_c" 1>&6
|
||||
echo "configure:7703: checking assembler --gstabs support" >&5
|
||||
echo "configure:7721: checking assembler --gstabs support" >&5
|
||||
gcc_cv_as_gstabs_flag=no
|
||||
if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x;
|
||||
then
|
||||
|
@ -7727,7 +7745,7 @@ fi
|
|||
echo "$ac_t""$gcc_cv_as_gstabs_flag" 1>&6
|
||||
|
||||
echo $ac_n "checking linker PT_GNU_EH_FRAME support""... $ac_c" 1>&6
|
||||
echo "configure:7731: checking linker PT_GNU_EH_FRAME support" >&5
|
||||
echo "configure:7749: checking linker PT_GNU_EH_FRAME support" >&5
|
||||
gcc_cv_ld_eh_frame_hdr=no
|
||||
if test x$gcc_cv_gld_major_version != x -a x$gcc_cv_gld_minor_version != x; then
|
||||
if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 12 -o "$gcc_cv_gld_major_version" -gt 2 && grep 'EMUL = elf' ../ld/Makefile > /dev/null; then
|
||||
|
@ -7890,7 +7908,7 @@ fi
|
|||
|
||||
|
||||
echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
|
||||
echo "configure:7894: checking whether to enable maintainer-specific portions of Makefiles" >&5
|
||||
echo "configure:7912: checking whether to enable maintainer-specific portions of Makefiles" >&5
|
||||
# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
|
||||
if test "${enable_maintainer_mode+set}" = set; then
|
||||
enableval="$enable_maintainer_mode"
|
||||
|
|
|
@ -1219,6 +1219,7 @@ changequote([,])dnl
|
|||
changequote(,)dnl
|
||||
gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
|
||||
gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
|
||||
gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
|
||||
changequote([,])dnl
|
||||
fi
|
||||
|
||||
|
@ -1501,7 +1502,13 @@ AC_MSG_RESULT($gcc_cv_as_weak)
|
|||
AC_MSG_CHECKING(assembler hidden support)
|
||||
gcc_cv_as_hidden=no
|
||||
if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
|
||||
if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 10 -o "$gcc_cv_gas_major_version" -gt 2 && grep 'obj_format = elf' ../gas/Makefile > /dev/null; then
|
||||
if test "$gcc_cv_gas_major_version" -eq 2 \
|
||||
-a "$gcc_cv_gas_minor_version" -eq 12 \
|
||||
-a "$gcc_cv_gas_patch_version" -ge 1 \
|
||||
-o "$gcc_cv_gas_major_version" -eq 2 \
|
||||
-a "$gcc_cv_gas_minor_version" -gt 12 \
|
||||
-o "$gcc_cv_gas_major_version" -gt 2 \
|
||||
&& grep 'obj_format = elf' ../gas/Makefile > /dev/null; then
|
||||
gcc_cv_as_hidden="yes"
|
||||
fi
|
||||
elif test x$gcc_cv_as != x; then
|
||||
|
@ -1512,6 +1519,19 @@ elif test x$gcc_cv_as != x; then
|
|||
gcc_cv_as_hidden="yes"
|
||||
fi
|
||||
rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
|
||||
|
||||
# GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
|
||||
# This is irritatingly difficult to feature test for. Look for
|
||||
# the date string after the version number.
|
||||
ld_ver=`$gcc_cv_ld --version 2>/dev/null | head -1`
|
||||
if echo "$ld_ver" | grep GNU > /dev/null; then
|
||||
changequote(,)dnl
|
||||
ld_date=`echo $ld_ver | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)[-]*\([01][0-9]\)[-]*\([0-3][0-9]\).*$,\1\2\3,;p'`
|
||||
changequote([,])dnl
|
||||
if test 0"$ld_date" -lt 20020404; then
|
||||
gcc_cv_as_hidden="no"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
if test x"$gcc_cv_as_hidden" = xyes; then
|
||||
AC_DEFINE(HAVE_GAS_HIDDEN, 1,
|
||||
|
|
Loading…
Add table
Reference in a new issue