Message ID | ydd368fg7ml.fsf@CeBiTec.Uni-Bielefeld.DE |
---|---|
State | New |
Headers | show |
Series | build: Fix 32-bit TLS detection with 64-bit-default gas on Solaris/x86 | expand |
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 <ro@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
Hi Jakub, > 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. >> 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 That would work, of course. I simply meant to follow the style of the 64-bit test as closely as possible. Rainer
# 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 conftest_s="$conftest_s foo: .long 25 .text