public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/60817] New: gcc configure script misdetects TLS support on x86_64-pc-solaris* with gnu as
@ 2014-04-11  5:56 redlizard at redlizard dot nl
  2014-04-11 13:19 ` [Bug target/60817] " ro at CeBiTec dot Uni-Bielefeld.DE
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: redlizard at redlizard dot nl @ 2014-04-11  5:56 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60817

            Bug ID: 60817
           Summary: gcc configure script misdetects TLS support on
                    x86_64-pc-solaris* with gnu as
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: redlizard at redlizard dot nl

Created attachment 32584
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32584&action=edit
Proposed patch.

When building gcc >= 4.7 on x86_64-pc-solaris2.11 --with-gnu-as, the
gcc/configure script incorrectly decides that gnu as does not support real TLS,
and so unnecessarily decides to activate emutls instead.

The solaris-specific test checks this support by trying to assemble a piece of
TLS-using assembly code, and it uses the same 32-bit code for this test both on
32-bit and 64-bit platforms. The solaris assembler will accept this, but gnu as
fails on the 32 bit code when targeting x86_64-pc-solaris*, thus causing the
detection to fail.

Attached patch for 4.9 fixes the problem, and is trivially backported to 4.8
and 4.7.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-04-16  9:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-11  5:56 [Bug target/60817] New: gcc configure script misdetects TLS support on x86_64-pc-solaris* with gnu as redlizard at redlizard dot nl
2014-04-11 13:19 ` [Bug target/60817] " ro at CeBiTec dot Uni-Bielefeld.DE
2014-04-11 15:49 ` redlizard at redlizard dot nl
2014-04-15 11:44 ` ro at CeBiTec dot Uni-Bielefeld.DE
2014-04-15 15:22 ` ro at gcc dot gnu.org
2014-04-16  9:10 ` ro at gcc dot gnu.org
2014-04-16  9:11 ` ro at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).