Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(418)

Unified Diff: gcc/config/i386/i386.c

Issue 6691046: Add -mtls-use-call option to avoid %gs:0 TLS accesses. (Closed) Base URL: http://git.chromium.org/git/nacl-gcc@master
Patch Set: Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
Download patch
« no previous file with comments | « gcc/config.gcc ('k') | gcc/config/i386/nacl.opt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « gcc/config.gcc ('k') | gcc/config/i386/nacl.opt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698