http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55889
--- Comment #18 from David Edelsohn <dje at gcc dot gnu.org> 2013-01-21
15:41:24 UTC ---
Probably something like
Index: rs6000.c
===================================================================
--- rs6000.c (revision 195319)
+++ rs6000.c (working copy)
@@ -5831,6 +5831,8 @@
/* Do not associate thread-local symbols with the original
constant pool symbol. */
if (TARGET_XCOFF
+ && GET_CODE (y) == SYMBOL_REF
+ && CONSTANT_POOL_ADDRESS_P (y)
&& SYMBOL_REF_TLS_MODEL (get_pool_constant (y)) >= TLS_MODEL_REAL)
return orig_x;
#endif