Recent versions of the Solaris/x86 assembler are gaining support for cfi directives. gcc/configure failed to detect this since it used a gas-only option for 64-bit code generation. This patch fixes it.
Tested on a wide range of assembler/linker configurations on i386-pc-solaris2.1[01], installed on mainline. Rainer 2014-03-27 Rainer Orth <r...@cebitec.uni-bielefeld.de> * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86 assembler 64-bit option. * configure: Regenerate.
# HG changeset patch # Parent 5006bbed82c4b0ec2df907a42697ebd4d1e8b40a Fix gcc_cv_as_cfi_directive test for Solaris as diff --git a/gcc/configure.ac b/gcc/configure.ac --- a/gcc/configure.ac +++ b/gcc/configure.ac @@ -2570,9 +2570,14 @@ gcc_GAS_CHECK_FEATURE([cfi directives], else case "$target" in i?86-*-solaris2.1[[0-9]]* | x86_64-*-solaris2.1[[0-9]]*) - # On Solaris/x86, make sure that GCC and gas agree on using + # On Solaris/x86, make sure that GCC and assembler agree on using # read-only .eh_frame sections for 64-bit. - if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \ + if test x$gas = xyes; then + as_ix86_64_opt="--64" + else + as_ix86_64_opt="-xarch=amd64" + fi + if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s > /dev/null 2>&1 && \ $gcc_cv_objdump -h conftest.o 2>/dev/null | \ sed -e /.eh_frame/!d -e N | \ grep READONLY > /dev/null; then
-- ----------------------------------------------------------------------------- Rainer Orth, Center for Biotechnology, Bielefeld University