public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgomp/42829]  New: TLS detection in ./configure is wrong.
@ 2010-01-21 15:41 jos dot de_laender at telenet dot be
  2010-01-21 15:42 ` [Bug libgomp/42829] " jos dot de_laender at telenet dot be
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: jos dot de_laender at telenet dot be @ 2010-01-21 15:41 UTC (permalink / raw)
  To: gcc-bugs

In attachment, you find the code that is used inside the configure m4 macro for
detecting the presence of TLS.

This check is unreliable.

When compiled with -O2 (as done in configure) the result might be that the
compiler reports same adress due to optimization and decides there is no TLS.

When compiled with -O0, it yields the correct result.

This is an optimization artefact. Please extend the test with the two lines I
put in comment. This way the test succeeds correctly, even after optimization.


-- 
           Summary: TLS detection in ./configure is wrong.
           Product: gcc
           Version: 4.4.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libgomp
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jos dot de_laender at telenet dot be
  GCC host triplet: i686-pc-mingw32
GCC target triplet: mingw64 - see description.


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


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

end of thread, other threads:[~2010-06-11  8:38 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-21 15:41 [Bug libgomp/42829] New: TLS detection in ./configure is wrong jos dot de_laender at telenet dot be
2010-01-21 15:42 ` [Bug libgomp/42829] " jos dot de_laender at telenet dot be
2010-01-21 19:49 ` pinskia at gcc dot gnu dot org
2010-01-21 20:37 ` jakub at gcc dot gnu dot org
2010-01-21 22:14 ` jos dot de_laender at telenet dot be
2010-01-23 10:35 ` ktietz at gcc dot gnu dot org
2010-06-11  8:38 ` iains at gcc dot gnu dot 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).