diff options
Diffstat (limited to 'libgcc/configure')
-rw-r--r-- | libgcc/configure | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/libgcc/configure b/libgcc/configure index a88259da325..9d567f9d48c 100644 --- a/libgcc/configure +++ b/libgcc/configure @@ -4810,6 +4810,27 @@ EOF ;; esac +# Check if xtensa target is configured for windowed ABI and thus needs to use +# custom unwind code. +# This is after config.host so we can augment tmake_file. +case ${host} in +xtensa*-*) + cat > conftest.c <<EOF + #ifdef __XTENSA_CALL0_ABI__ + #error + #endif +EOF + if { ac_try='${CC-cc} -E -o conftest.i conftest.c 1>&5' + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 + (eval $ac_try) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then + tmake_file="${tmake_file} xtensa/t-windowed" + fi + ;; +esac + # Check for visibility support. This is after config.host so that # we can check for asm_hidden_op. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5 |