This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/34475] TLS and PIE don't mix on x86-64
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Dec 2007 13:40:09 -0000
- Subject: [Bug middle-end/34475] TLS and PIE don't mix on x86-64
- References: <bug-34475-700@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from jakub at gcc dot gnu dot org 2007-12-15 13:40 -------
--- gcc/varasm.c.jj101 2007-12-06 11:53:42.000000000 +0100
+++ gcc/varasm.c 2007-12-15 14:33:36.000000000 +0100
@@ -5519,7 +5519,7 @@ decl_default_tls_model (const_tree decl)
is_local = targetm.binds_local_p (decl);
if (!flag_shlib)
{
- if (is_local)
+ if (is_local && !flag_pic)
kind = TLS_MODEL_LOCAL_EXEC;
else
kind = TLS_MODEL_INITIAL_EXEC;
will fix this (for all targets). Will work on a testcase that covers at least
a bunch of common targets.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jakub at gcc dot gnu dot org
|dot org |
Status|UNCONFIRMED |ASSIGNED
Component|target |middle-end
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2007-12-15 13:40:08
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34475