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

Issue 940993003: Build the IRT with nacl-clang for x86 (Closed)

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

Description

Build the IRT with nacl-clang for x86 This should result in faster builds, and in the future could allow cleanups of the IRT-building gyp code and the PNaCl drivers. * Use -mstackrealign and -mno-sse to be callable with under-aligned stacks. * Use -integrated-as to ensure sandbox base address hiding on x86-64. * Uses -fno-exceptions to reduce the size, and links with PNaCl's unwind stubs to avoid including the unwinder (which would otherwise be pulled in by libcxx). * Remove -gline-tables-only which was a workaround for slowness and excessive memory consumption in bitcode linking * Also use nacl-clang for the SCons core IRT build. BUG= https://code.google.com/p/nativeclient/issues/detail?id=4088 R=jvoung@chromium.org, mseaborn@chromium.org Committed: https://chromium.googlesource.com/native_client/src/native_client/+/316f3e53bfcc34e4a137abbce02d890e3ea968ce

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : udpates #

Patch Set 4 : #

Patch Set 5 : rebase #

Patch Set 6 : #

Patch Set 7 : fix ARM #

Patch Set 8 : #

Patch Set 9 : <3 gyp #

Patch Set 10 : fix sbtc build #

Total comments: 34

Patch Set 11 : review #

Patch Set 12 : remove -lgcc_eh #

Total comments: 6

Patch Set 13 : review 2 #

Total comments: 25

Patch Set 14 : mseaborn review #

Total comments: 4

Patch Set 15 : rebase #

Patch Set 16 : format nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+108 lines, -55 lines) Patch
M SConstruct View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +22 lines, -26 lines 0 comments Download
M build/untrusted.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 12 chunks +36 lines, -25 lines 0 comments Download
A src/untrusted/irt/frame_info_stubs.c View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +17 lines, -0 lines 0 comments Download
M src/untrusted/irt/irt.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +22 lines, -1 line 0 comments Download
M toolchain_build/pnacl_sandboxed_translator.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +11 lines, -3 lines 0 comments Download

Messages

Total messages: 22 (4 generated)
Derek Schuff
5 years, 9 months ago (2015-03-19 04:06:32 UTC) #2
jvoung (off chromium)
https://codereview.chromium.org/940993003/diff/170001/SConstruct File SConstruct (right): https://codereview.chromium.org/940993003/diff/170001/SConstruct#newcode3482 SConstruct:3482: # base address hiding. It's also use on x86-32 ...
5 years, 9 months ago (2015-03-19 17:36:26 UTC) #3
jvoung (off chromium)
https://codereview.chromium.org/940993003/diff/170001/build/untrusted.gypi File build/untrusted.gypi (right): https://codereview.chromium.org/940993003/diff/170001/build/untrusted.gypi#newcode1481 build/untrusted.gypi:1481: '-lgcc_eh', Also, does lgcc_eh need to be here, if ...
5 years, 9 months ago (2015-03-19 17:51:53 UTC) #4
Derek Schuff
https://codereview.chromium.org/940993003/diff/170001/SConstruct File SConstruct (right): https://codereview.chromium.org/940993003/diff/170001/SConstruct#newcode3482 SConstruct:3482: # base address hiding. It's also use on x86-32 ...
5 years, 9 months ago (2015-03-19 18:36:17 UTC) #5
jvoung (off chromium)
https://codereview.chromium.org/940993003/diff/170001/build/untrusted.gypi File build/untrusted.gypi (right): https://codereview.chromium.org/940993003/diff/170001/build/untrusted.gypi#newcode1481 build/untrusted.gypi:1481: '-lgcc_eh', On 2015/03/19 17:51:53, jvoung wrote: > Also, does ...
5 years, 9 months ago (2015-03-19 19:21:06 UTC) #6
Derek Schuff
On 2015/03/19 19:21:06, jvoung wrote: > https://codereview.chromium.org/940993003/diff/170001/build/untrusted.gypi > File build/untrusted.gypi (right): > > https://codereview.chromium.org/940993003/diff/170001/build/untrusted.gypi#newcode1481 > ...
5 years, 9 months ago (2015-03-19 19:22:28 UTC) #7
jvoung (off chromium)
Cool -- faster compiles! LGTM https://codereview.chromium.org/940993003/diff/210001/src/untrusted/irt/frame_info_stubs.c File src/untrusted/irt/frame_info_stubs.c (right): https://codereview.chromium.org/940993003/diff/210001/src/untrusted/irt/frame_info_stubs.c#newcode7 src/untrusted/irt/frame_info_stubs.c:7: /* On x86-64 we ...
5 years, 9 months ago (2015-03-19 19:38:56 UTC) #8
Derek Schuff
faster but sadly, not as fast as you would hope. build_nexe.py is still terrible. https://codereview.chromium.org/940993003/diff/210001/src/untrusted/irt/frame_info_stubs.c ...
5 years, 9 months ago (2015-03-19 19:47:59 UTC) #9
Derek Schuff
still need mseaborn for src/untrusted/irt OWNERS
5 years, 9 months ago (2015-03-19 19:49:27 UTC) #10
Mark Seaborn
https://codereview.chromium.org/940993003/diff/230001/SConstruct File SConstruct (right): https://codereview.chromium.org/940993003/diff/230001/SConstruct#newcode3488 SConstruct:3488: # See https://code.google.com/p/nativeclient/issues/detail?id=3935 Nit: excess space after "See" https://codereview.chromium.org/940993003/diff/230001/SConstruct#newcode3489 ...
5 years, 9 months ago (2015-03-19 20:54:48 UTC) #11
Derek Schuff
https://codereview.chromium.org/940993003/diff/230001/SConstruct File SConstruct (right): https://codereview.chromium.org/940993003/diff/230001/SConstruct#newcode3489 SConstruct:3489: nacl_irt_env.Append(CCFLAGS=['-mstackrealign', '-mno-sse']) On 2015/03/19 20:54:48, Mark Seaborn wrote: > ...
5 years, 9 months ago (2015-03-19 21:28:30 UTC) #12
Derek Schuff
https://codereview.chromium.org/940993003/diff/230001/src/untrusted/irt/frame_info_stubs.c File src/untrusted/irt/frame_info_stubs.c (right): https://codereview.chromium.org/940993003/diff/230001/src/untrusted/irt/frame_info_stubs.c#newcode8 src/untrusted/irt/frame_info_stubs.c:8: * On x86-64 we build the IRT with sandbox ...
5 years, 9 months ago (2015-03-24 01:27:19 UTC) #13
Derek Schuff
+mcgrathr Mark's on vacation, can you look for src/untrusted/irt OWNERS?
5 years, 9 months ago (2015-03-24 16:56:01 UTC) #15
Mark Seaborn
LGTM https://codereview.chromium.org/940993003/diff/230001/src/untrusted/irt/frame_info_stubs.c File src/untrusted/irt/frame_info_stubs.c (right): https://codereview.chromium.org/940993003/diff/230001/src/untrusted/irt/frame_info_stubs.c#newcode8 src/untrusted/irt/frame_info_stubs.c:8: * On x86-64 we build the IRT with ...
5 years, 9 months ago (2015-03-25 08:37:00 UTC) #16
Derek Schuff
https://codereview.chromium.org/940993003/diff/250001/build/untrusted.gypi File build/untrusted.gypi (right): https://codereview.chromium.org/940993003/diff/250001/build/untrusted.gypi#newcode1463 build/untrusted.gypi:1463: # The IRT must be built using LLVM's assembler ...
5 years, 9 months ago (2015-03-25 18:04:20 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/940993003/290001
5 years, 9 months ago (2015-03-25 19:44:54 UTC) #20
Derek Schuff
Committed patchset #16 (id:290001) manually as 316f3e53bfcc34e4a137abbce02d890e3ea968ce (presubmit successful).
5 years, 9 months ago (2015-03-25 20:54:29 UTC) #21
Derek Schuff
5 years, 9 months ago (2015-03-25 22:45:22 UTC) #22
Message was sent while issue was closed.
A revert of this CL (patchset #16 id:290001) has been created in
https://codereview.chromium.org/1036513005/ by dschuff@chromium.org.

The reason for reverting is: F%*$^ windows XP.

Powered by Google App Engine
This is Rietveld 408576698