diff options
author | ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-11-20 17:13:01 +0000 |
---|---|---|
committer | ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-11-20 17:13:01 +0000 |
commit | 03150a338ef2f77b0e6a8b3238e3f6f9fba15e4f (patch) | |
tree | 05532f9b36c19db3ba4c3c2a298e1d0c80348696 /libgcc/configure | |
parent | 40b4f5e174cfdb85f43dabb9b568cad567c7a3f8 (diff) | |
download | gcc-03150a338ef2f77b0e6a8b3238e3f6f9fba15e4f.tar.gz |
gcc:
PR bootstrap/33100
* config.gcc (i[34567]86-*-solaris2*): Don't include
i386/t-crtstuff here.
Move extra_parts, i386/t-sol2 in tmake_file to libgcc/config.host.
* config/i386/t-sol2: Move to libgcc/config/i386.
libgcc:
PR bootstrap/33100
* configure.ac (i?86-*-solaris2.1[0-9]*): Only include
i386/t-crtstuff if linker supports ZERO terminator unwind entries.
* configure: Regenerate.
* config.host (i[34567]86-*-solaris2*): Move i386/t-sol2 in
tmake_file here from gcc/config.gcc.
Move extra_parts here from gcc/config.gcc.
* config/i386/t-sol2: Move here from gcc/config/i386.
Use gcc_srcdir instead of srcdir.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@142050 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgcc/configure')
-rw-r--r-- | libgcc/configure | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/libgcc/configure b/libgcc/configure index 75bf9034b1a..6315ecd5cbc 100644 --- a/libgcc/configure +++ b/libgcc/configure @@ -3420,6 +3420,31 @@ esac # Collect host-machine-specific information. . ${srcdir}/config.host +# Check if Solaris/x86 linker supports ZERO terminator unwind entries. +# This is after config.host so we can augment tmake_file. +# Link with -nostartfiles -nodefaultlibs since neither are present while +# building libgcc. +case ${host} in +i?86-*-solaris2.1[0-9]*) + cat > conftest.s <<EOF + .section .eh_frame,"a",@unwind + .zero 4 + .section .jcr,"aw",@progbits + .zero 8 +EOF + if { ac_try='${CC-cc} -shared -nostartfiles -nodefaultlibs -o conftest.so conftest.s 1>&5' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + # configure expects config files in libgcc/config, so need a relative + # path here. + tmake_file="${tmake_file} ../../gcc/config/i386/t-crtstuff" + fi + ;; +esac + # Check for visibility support. This is after config.host so that # we can check for asm_hidden_op. echo "$as_me:$LINENO: checking for __attribute__((visibility(\"hidden\")))" >&5 |