summaryrefslogtreecommitdiff
path: root/gcc/configure.ac
diff options
context:
space:
mode:
authoraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2007-03-13 07:19:14 +0000
committeraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2007-03-13 07:19:14 +0000
commita8971681232fc552ae580c703d55a11f1fb0f84d (patch)
treea589b7305cf809c8177da753f9992003644b90a1 /gcc/configure.ac
parentc99afad88f90bc304cdf6fb80ce461d0b2477410 (diff)
downloadgcc-a8971681232fc552ae580c703d55a11f1fb0f84d.tar.gz
* configure.ac: Test for assembler tolerance to # 0 "".
* configure, config.in: Rebuilt. * final.c (final_scan_insn): Emit it if HAVE_AS_LINE_ZERO. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122879 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/configure.ac')
-rw-r--r--gcc/configure.ac24
1 files changed, 24 insertions, 0 deletions
diff --git a/gcc/configure.ac b/gcc/configure.ac
index ed5fb203eef..768cff05208 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