From: Geoffrey Keating Date: Tue, 3 Apr 2001 07:02:31 +0000 (+0000) Subject: configure.in (gcc_cv_as_leb128): Correct name of cache variable. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fbe42b1b05e5efd075b011bcee4489e6914a95c9;p=gcc.git configure.in (gcc_cv_as_leb128): Correct name of cache variable. * configure.in (gcc_cv_as_leb128): Correct name of cache variable. Require at least 2.11 in the version test. Specifically check for and reject GAS version 2.10.90. * configure: regenerate. From-SVN: r41039 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 22db93e137a..42860123889 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2001-04-02 Geoffrey Keating + + * configure.in (gcc_cv_as_leb128): Correct name of cache variable. + Require at least 2.11 in the version test. Specifically check + for and reject GAS version 2.10.90. + * configure: regenerate. + 2001-04-03 Alan Modra * config/pa/pa.c (override_options): Remove PIC profiling warning. diff --git a/gcc/configure b/gcc/configure index 2f97b6af47d..d23559b06f8 100755 --- a/gcc/configure +++ b/gcc/configure @@ -2018,7 +2018,7 @@ EOF fi # Find some useful tools -for ac_prog in mawk gawk nawk awk +for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 @@ -6521,9 +6521,9 @@ echo "$ac_t""$gcc_cv_as_hidden" 1>&6 echo $ac_n "checking assembler leb128 support""... $ac_c" 1>&6 echo "configure:6524: checking assembler leb128 support" >&5 -gcc_cv_as_hidden=no +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 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" -ge 11 -o "$gcc_cv_gas_major_version" -gt 2 && grep 'obj_format = elf' ../gas/Makefile > /dev/null; then gcc_cv_as_leb128="yes" fi elif test x$gcc_cv_as != x; then @@ -6537,7 +6537,13 @@ L1: L2: EOF if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then - gcc_cv_as_leb128="yes" + # GAS versions numbered 2.10.90 do not support uleb128, despite + # appearing to. + if $gcc_cv_as --version | fgrep 2.10.90 > /dev/null; then + : + else + gcc_cv_as_leb128="yes" + fi fi rm -f conftest.s conftest.o conftest.nm1 conftest.nm2 fi @@ -6552,7 +6558,7 @@ echo "$ac_t""$gcc_cv_as_leb128" 1>&6 case "$target" in sparc*-*-*) echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6 -echo "configure:6556: checking assembler .register pseudo-op support" >&5 +echo "configure:6562: 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 @@ -6580,7 +6586,7 @@ EOF fi echo $ac_n "checking assembler supports -relax""... $ac_c" 1>&6 -echo "configure:6584: checking assembler supports -relax" >&5 +echo "configure:6590: 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 @@ -6610,7 +6616,7 @@ EOF case "$tm_file" in *64*) echo $ac_n "checking for 64 bit support in assembler ($gcc_cv_as)""... $ac_c" 1>&6 -echo "configure:6614: checking for 64 bit support in assembler ($gcc_cv_as)" >&5 +echo "configure:6620: checking for 64 bit support in assembler ($gcc_cv_as)" >&5 if eval "test \"`echo '$''{'gcc_cv_as_flags64'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -6655,7 +6661,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:6659: checking for assembler offsetable %lo() support" >&5 +echo "configure:6665: 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 @@ -6694,7 +6700,7 @@ EOF i[34567]86-*-*) echo $ac_n "checking assembler instructions""... $ac_c" 1>&6 -echo "configure:6698: checking assembler instructions" >&5 +echo "configure:6704: 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 @@ -6723,7 +6729,7 @@ EOF esac echo $ac_n "checking assembler dwarf2 debug_line support""... $ac_c" 1>&6 -echo "configure:6727: checking assembler dwarf2 debug_line support" >&5 +echo "configure:6733: 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 @@ -6913,7 +6919,7 @@ EOF echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 -echo "configure:6917: checking whether to enable maintainer-specific portions of Makefiles" >&5 +echo "configure:6923: 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" diff --git a/gcc/configure.in b/gcc/configure.in index a26f8a7146c..470c38c9156 100644 --- a/gcc/configure.in +++ b/gcc/configure.in @@ -1303,9 +1303,9 @@ fi AC_MSG_RESULT($gcc_cv_as_hidden) AC_MSG_CHECKING(assembler leb128 support) -gcc_cv_as_hidden=no +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 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" -ge 11 -o "$gcc_cv_gas_major_version" -gt 2 && grep 'obj_format = elf' ../gas/Makefile > /dev/null; then gcc_cv_as_leb128="yes" fi elif test x$gcc_cv_as != x; then @@ -1319,7 +1319,13 @@ L1: L2: EOF if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then - gcc_cv_as_leb128="yes" + # GAS versions numbered 2.10.90 do not support uleb128, despite + # appearing to. + if $gcc_cv_as --version | fgrep 2.10.90 > /dev/null; then + : + else + gcc_cv_as_leb128="yes" + fi fi rm -f conftest.s conftest.o conftest.nm1 conftest.nm2 fi