On Mon, May 04, 2020 at 03:19:30PM +0200, Rainer Orth wrote:
> I'm going to commit this to master shortly.  Ok for the gcc-10 branch,
> too, given that it fixes a bootstrap failure?

Ok, but see below.

> 2020-05-02  Rainer Orth  <r...@cebitec.uni-bielefeld.de>
> 
>       * configure.ac <i[34567]86-*-*>: Add --32 to tls_as_opt on Solaris.
>       * configure: Regenerate.
> 

> # HG changeset patch
> # Parent  536b6b3f48b6668fa1724b8675b1cceadaab5632
> build: Fix 32-bit TLS detection with 64-bit-default gas on Solaris/x86
> 
> diff --git a/gcc/configure.ac b/gcc/configure.ac
> --- a/gcc/configure.ac
> +++ b/gcc/configure.ac
> @@ -3562,6 +3562,11 @@ changequote(,)dnl
>      fi
>      case "$target" in
>        i[34567]86-*-*)
> +     if test x$on_solaris = xyes; then
> +       case $gas_flag in
> +         yes) tls_as_opt="$tls_as_opt --32" ;;
> +       esac
> +     fi

Why not following instead?
        if test x$on_solaris = xyes && test x$gas_flag = xyes; then
          tls_as_opt="$tls_as_opt --32"
        fi

        Jakub

Reply via email to