Chromium Code Reviews| Index: gcc/config/i386/i386.c |
| diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c |
| index 7687ca0bd04bc374e75c38a538a871e74fef27d3..01310a41ecd426dc32cd47dba90ed01ef7665e61 100644 |
| --- a/gcc/config/i386/i386.c |
| +++ b/gcc/config/i386/i386.c |
| @@ -10112,7 +10112,7 @@ get_thread_pointer (int to_reg) |
| { |
| rtx tp, reg, insn; |
| - if (TARGET_64BIT && TARGET_NACL) |
| + if (TARGET_NACL && (TARGET_64BIT || TARGET_TLS_USE_CALL)) |
| { |
| rtx rax = gen_rtx_REG (Pmode, AX_REG); |