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

Issue 838933004: Inject gnueabihf environment into the effective clang triple for NaCl (Closed)

Created:
5 years, 11 months ago by Derek Schuff
Modified:
5 years, 11 months ago
CC:
native-client-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/native_client/pnacl-clang.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Inject gnueabihf environment into the effective clang triple for NaCl The effective clang triple is what the clang driver passes as the -target flag for its cc1 jobs. Setting gnueabihf as the default environment for nacl means that the the triple with that environment will end up as the module's triple (instead of just "armv7-nacl") and the clang LLVM sides will always agree on the defaults. This mostly doesn't matter except for things like calls to runtime functions such as those in compiler-rt or libcxxabi, where a mismatch was observed. With this change the modules have the environment in the module's triple and the calling convention is not explicitly overriden on every function define and callsite as it was before. R=jfb@chromium.org, jvoung@chromium.org BUG= https://code.google.com/p/nativeclient/issues/detail?id=4018 Committed: 2394ea917dc67604cbda4945312f76e9b4f60943

Patch Set 1 #

Total comments: 4

Patch Set 2 : review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -3 lines) Patch
M lib/Driver/ToolChains.h View 1 chunk +3 lines, -0 lines 0 comments Download
M lib/Driver/ToolChains.cpp View 1 1 chunk +9 lines, -0 lines 0 comments Download
M lib/Driver/Tools.cpp View 1 chunk +0 lines, -2 lines 0 comments Download
M test/Driver/nacl-direct.c View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
Derek Schuff
5 years, 11 months ago (2015-01-21 01:55:54 UTC) #1
JF
Do we also need to pass -float-abi=hard ? Does that mean that we force ARM ...
5 years, 11 months ago (2015-01-21 04:07:58 UTC) #2
jvoung (off chromium)
Otherwise LGTM https://codereview.chromium.org/838933004/diff/1/lib/Driver/ToolChains.cpp File lib/Driver/ToolChains.cpp (right): https://codereview.chromium.org/838933004/diff/1/lib/Driver/ToolChains.cpp#newcode2533 lib/Driver/ToolChains.cpp:2533: const llvm::opt::ArgList &Args, Can this just be ...
5 years, 11 months ago (2015-01-21 16:36:23 UTC) #3
Derek Schuff
> Do we also need to pass -float-abi=hard ? No, the localmod Jan mentioned covers ...
5 years, 11 months ago (2015-01-21 17:37:37 UTC) #4
Derek Schuff
5 years, 11 months ago (2015-01-21 19:01:48 UTC) #5
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
2394ea917dc67604cbda4945312f76e9b4f60943 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698