------- Comment #2 from amodra at bigpond dot net dot au 2006-05-08 23:28 ------- Confirmed. TLS code sequences consist of address generation followed by address dereference, for all TLS models. The address generation part uses UNSPECs because we need to differentiate the addis/addi from other hi/lo_sum patterns: The TLS versions need to emit reloc specifiers. Existing combined patterns cannot be used.
To fix this problem, the rs6000 backend needs to be taught how to combine the lo_sum lookalike part of the TLS address generation with the TLS load/store. I would guess that the easiest way to implement this is with new peephole2 patterns. -- amodra at bigpond dot net dot au changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2006-05-08 23:28:21 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27479