From 03943c05c123b301f978f2c5f56fc692a03586cb Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Tue, 13 Mar 2007 07:19:14 +0000 Subject: configure.ac: Test for assembler tolerance to # 0 "". * configure.ac: Test for assembler tolerance to # 0 "". * configure, config.in: Rebuilt. * final.c (final_scan_insn): Emit it if HAVE_AS_LINE_ZERO. From-SVN: r122879 --- gcc/configure.ac | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'gcc/configure.ac') diff --git a/gcc/configure.ac b/gcc/configure.ac index ed5fb20..768cff0 100644 --- a/gcc/configure.ac +++ b/gcc/configure.ac @@ -3069,6 +3069,30 @@ if test x"$insn" != x; then [Define if your assembler supports the --gstabs option.])]) fi +AC_CACHE_CHECK([assembler for tolerance to line number 0], + [gcc_cv_as_line_zero], + [gcc_cv_as_line_zero=no + if test $in_tree_gas = yes; then + gcc_GAS_VERSION_GTE_IFELSE([elf,2,16,91], [gcc_cv_as_line_zero=yes]) + elif test "x$gcc_cv_as" != x; then + { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s + if AC_TRY_COMMAND([$gcc_cv_as -o conftest.o conftest.s >&AS_MESSAGE_LOG_FD 2>conftest.out]) && + test "x`cat conftest.out`" = x + then + gcc_cv_as_line_zero=yes + else + echo "configure: failed program was" >&AS_MESSAGE_LOG_FD + cat conftest.s >&AS_MESSAGE_LOG_FD + echo "configure: error output was" >&AS_MESSAGE_LOG_FD + cat conftest.out >&AS_MESSAGE_LOG_FD + fi + rm -f conftest.o conftest.s conftest.out + fi]) +if test "x$gcc_cv_as_line_zero" = xyes; then + AC_DEFINE([HAVE_AS_LINE_ZERO], 1, +[Define if the assembler won't complain about a line such as # 0 "" 2.]) +fi + AC_MSG_CHECKING(linker read-only and read-write section mixing) gcc_cv_ld_ro_rw_mix=unknown if test $in_tree_ld = yes ; then -- cgit v1.1