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

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

Issue 7694018: Don't generate absolute references under nacl-x64. (Closed) Base URL: http://git.chromium.org/native_client/nacl-gcc.git@master
Patch Set: Added comment to i386.c file itself Created 9 years, 4 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 | « no previous file | no next file » | 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 43b69e7490502bc1eb35422753c0ee03cbe0046e..f958b16c44d38ee1a5c98afab271b8ee6653693e 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -7145,6 +7145,13 @@ ix86_check_movabs (rtx insn, int opnum)
{
rtx set, mem;
+ /* In Native Client we can not use movabs because it assumes that
+ non-PIC module is loaded using fixed address. In Native client
+ non-PIC module is loaded using fixed address *relative* *to* R15.
+ Probably good idea to replace it with %rip-based mov, but for now
+ just disable movabs to produce working binaries. */
+ if (TARGET_NACL)
+ return false;
set = PATTERN (insn);
if (GET_CODE (set) == PARALLEL)
set = XVECEXP (set, 0, 0);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698