aboutsummaryrefslogtreecommitdiff
path: root/gcc/configure
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2001-03-16 11:31:19 -0800
committerRichard Henderson <rth@gcc.gnu.org>2001-03-16 11:31:19 -0800
commit981975b62d8e098e571a91c30b938b4bcc7a3fa7 (patch)
tree7db1544714b472b5f49960ccbe71531952d9a218 /gcc/configure
parent69e230371807f22b3dc52ee64e87314fb61c750c (diff)
downloadgcc-981975b62d8e098e571a91c30b938b4bcc7a3fa7.zip
gcc-981975b62d8e098e571a91c30b938b4bcc7a3fa7.tar.gz
gcc-981975b62d8e098e571a91c30b938b4bcc7a3fa7.tar.bz2
dwarf2out.c: Revert most of 2000-11-25 and 2001-01-24 changes.
* dwarf2out.c: Revert most of 2000-11-25 and 2001-01-24 changes. (LN_PROLOG_AS_LABEL, LN_PROLOG_END_LABEL): New. (size_of_line_prolog): Remove. (output_line_info): Compute prologue size via label difference. (lookup_filename): Return "unspecified" for <internal> and <built-in>. * configure.in (HAVE_AS_DWARF2_DEBUG_LINE): Require that the assembler error when redefining file numbers. * config.in, configure: Rebuild. From-SVN: r40559
Diffstat (limited to 'gcc/configure')
-rwxr-xr-xgcc/configure18
1 files changed, 15 insertions, 3 deletions
diff --git a/gcc/configure b/gcc/configure
index a6c4fbd..9af92cb 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -2098,7 +2098,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
@@ -6688,9 +6688,21 @@ elif test x$gcc_cv_as != x -a x"$insn" != x ; then
echo ' .file 0 "conftest.s"' > conftest.s
echo ' .loc 0 3 0' >> conftest.s
echo " $insn" >> conftest.s
+ # ??? This fails with non-gnu grep.
if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
&& grep debug_line conftest.o > /dev/null 2>&1 ; then
- gcc_cv_as_dwarf2_debug_line="yes"
+ # The .debug_line file table must be in the exact order that
+ # we specified the files, since these indicies are also used
+ # by DW_AT_decl_file. Approximate this test by testing if
+ # the assembler bitches if the same index is assigned twice.
+ echo ' .file 1 "foo.s"' > conftest.s
+ echo ' .file 1 "bar.s"' >> conftest.s
+ if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1
+ then
+ gcc_cv_as_dwarf2_debug_line="no"
+ else
+ gcc_cv_as_dwarf2_debug_line="yes"
+ fi
fi
rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
fi
@@ -6837,7 +6849,7 @@ EOF
echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
-echo "configure:6841: checking whether to enable maintainer-specific portions of Makefiles" >&5
+echo "configure:6853: 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"