native_client/src/native_client.git
4 hours agoUpdate .DEPS.git master
chrome-admin@google.com [Mon, 20 Oct 2014 08:39:08 +0000 (08:39 +0000)]
Update .DEPS.git

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13946 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

4 hours agoUpdate .DEPS.git
chrome-admin@google.com [Mon, 20 Oct 2014 08:38:52 +0000 (08:38 +0000)]
Update .DEPS.git

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13945 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

4 hours agoUpdate .DEPS.git
chrome-admin@google.com [Mon, 20 Oct 2014 08:31:08 +0000 (08:31 +0000)]
Update .DEPS.git

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13944 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

4 hours agoUpdate .DEPS.git
chrome-admin@google.com [Mon, 20 Oct 2014 08:30:25 +0000 (08:30 +0000)]
Update .DEPS.git

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13943 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

12 hours agoAvoid using mismatch compilers from buildbot.
yyanagisawa@chromium.org [Mon, 20 Oct 2014 00:39:52 +0000 (00:39 +0000)]
Avoid using mismatch compilers from buildbot.

Since buildbots are expected to be used as checking the compiler's
bug before submission.  It should not be good to check it by using
the different version compiler in goma server.

BUG=https://code.google.com/p/nativeclient/issues/detail?id=3933

Fix: forget to import time.

Add import time to avoid NameError.
This is a follow up of https://codereview.chromium.org/581063002/.

Also, as suggested in the comment of above change, WindowsError will
be logged.

BUG=https://code.google.com/p/nativeclient/issues/detail?id=3934

Review URL: https://codereview.chromium.org/649563004

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13942 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

13 hours agoUpdate .DEPS.git
chrome-admin@google.com [Sun, 19 Oct 2014 23:48:11 +0000 (23:48 +0000)]
Update .DEPS.git

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13941 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

13 hours agoUpdate .DEPS.git
chrome-admin@google.com [Sun, 19 Oct 2014 23:47:36 +0000 (23:47 +0000)]
Update .DEPS.git

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13940 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

41 hours agoUpdate .DEPS.git
chrome-admin@google.com [Sat, 18 Oct 2014 19:22:10 +0000 (19:22 +0000)]
Update .DEPS.git

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13939 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

41 hours agoUpdate .DEPS.git
chrome-admin@google.com [Sat, 18 Oct 2014 19:21:30 +0000 (19:21 +0000)]
Update .DEPS.git

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13938 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

2 days ago[MIPS] Add missing -mtls-use-call when building irt libraries
petarj@mips.com [Sat, 18 Oct 2014 01:31:09 +0000 (01:31 +0000)]
[MIPS] Add missing -mtls-use-call when building irt libraries

Option "-mtls-use-call" was passed for building irt.nexe but not for
building irt libraries separately. The issue was triggered in Debug build in
Chromium.

BUG= NaCl crashes in Debug build in Chromium

Review URL: https://codereview.chromium.org/663853004

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13937 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

2 days agoAdd third_party/computer_language_benchmarks_game to DEPS
nfullagar@google.com [Fri, 17 Oct 2014 22:54:02 +0000 (22:54 +0000)]
Add third_party/computer_language_benchmarks_game to DEPS
so checkdeps.py passes.
TEST=local run of checkdeps.py
BUG=none
R=jvoung@chromium.org

Review URL: https://codereview.chromium.org/660953003

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13936 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

2 days agoInitial benchmark suite for toolchain side.
nfullagar@google.com [Fri, 17 Oct 2014 22:37:21 +0000 (22:37 +0000)]
Initial benchmark suite for toolchain side.
The benchmarks binarytrees, nbody, and chameneos are from
the computer language benchmarks game.  The benchmark
Life is from the native client sdk demo.
The benchmark timings are printed in a format that gasper
will scrape.  If a benchmark fails, it will show up as
a failure in large tests.
TEST=these benchmarks are, in a sense, tests.
BUG=none
R=bradnelson@google.com

Review URL: https://codereview.chromium.org/658653004

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13935 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

2 days agoAllow 'opt' bots to use GN with is_debug=false ('dbg' bots get debug).
jvoung@google.com [Fri, 17 Oct 2014 20:19:46 +0000 (20:19 +0000)]
Allow 'opt' bots to use GN with is_debug=false ('dbg' bots get debug).

This hopefully makes the sel_ldr built by GN for 'performance_test'
similar to the sel_ldr built by scons.

BUG=none
R=bradnelson@google.com

Review URL: https://codereview.chromium.org/659373002

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13934 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

2 days agoEnable arm callingconv test for varargs and va_list.
jvoung@google.com [Fri, 17 Oct 2014 19:04:21 +0000 (19:04 +0000)]
Enable arm callingconv test for varargs and va_list.

Enable structs, but don't enable doubles because of
possible constant island issues.

Should work now thanks to Roland's change to va_list
definition for arm-nacl-gcc.
See commit in comment #41 of:
BUG= https://code.google.com/p/nativeclient/issues/detail?id=3650

BUG= https://code.google.com/p/nativeclient/issues/detail?id=3143
BUG= http://code.google.com/p/nativeclient/issues/detail?id=2378
R=dschuff@chromium.org

Review URL: https://codereview.chromium.org/661903002

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13933 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

2 days agoKeep the perf data of the trusted version of performance_tests separate.
jvoung@chromium.org [Fri, 17 Oct 2014 18:19:16 +0000 (18:19 +0000)]
Keep the perf data of the trusted version of performance_tests separate.

13910 changed it to use GetPerfEnvDescription() without
a 'trusted' prefix. Revert to old form with 'trusted'
prefix. Keep the perf_prefix, which was added by 13910 to
distinguish between gn and not gn.

This prevents run_trusted_performance_test from
clashing with run_performance_test.

BUG=none

Review URL: https://codereview.chromium.org/665483003

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13932 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

2 days agofix lahf feature detection.
shyamsundarr@chromium.org [Fri, 17 Oct 2014 16:50:13 +0000 (16:50 +0000)]
fix lahf feature detection.

khim@ diagnosed the issue in:
https://codereview.chromium.org/638223002/
Add a test that contains sahf/lahf instructions that runs in sel_ldr.

BUG=https://code.google.com/p/nativeclient/issues/detail?id=3971
R=mseaborn@chromium.org

Review URL: https://codereview.chromium.org/639713008

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13931 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

3 days agoUpdate .DEPS.git
chrome-admin@google.com [Fri, 17 Oct 2014 05:37:12 +0000 (05:37 +0000)]
Update .DEPS.git

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13930 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

3 days agoUpdate .DEPS.git
chrome-admin@google.com [Fri, 17 Oct 2014 05:18:07 +0000 (05:18 +0000)]
Update .DEPS.git

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13929 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

3 days agoDisable flaky IRT extension thread tests on asan mac bots.
dyen@chromium.org [Fri, 17 Oct 2014 00:36:16 +0000 (00:36 +0000)]
Disable flaky IRT extension thread tests on asan mac bots.

R=mcgrathr@chromium.org
BUG= https://code.google.com/p/nativeclient/issues/detail?id=3906
TEST=trybots

Review URL: https://codereview.chromium.org/642143002

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13928 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

3 days agoUpdate revision for PNaCl r13918->r13925
dschuff@chromium.org [Thu, 16 Oct 2014 21:20:05 +0000 (21:20 +0000)]
Update revision for PNaCl r13918->r13925

Pull the following PNaCl changes into NaCl:
  r13920: (dschuff@chromium.org) PNaCl: Update LLVM revision in pnacl/COMPONENT_REVISIONS
    | e9104b5: (dschuff@chromium.org) Change usage of naclcall and nacljmp pseudo-instructions to match x86 gas
    | 7197942: (dschuff@chromium.org) Cherrypick Upstream r219811: [MC] Make bundle alignment mode setting idempotent and support nested bundles
  r13924: (dschuff@chromium.org) PNaCl: Update LLVM revision in pnacl/COMPONENT_REVISIONS
    | 6eb1213: (dschuff@chromium.org) Fix mov register size sandbox-hiding frame setup
    | 5ec5bfe: (dschuff@chromium.org) Ensure jump tables get a unique rodata section if their corresponding function has a unique text section

BUG= https://code.google.com/p/nativeclient/issues/detail?id=3966
BUG= https://code.google.com/p/nativeclient/issues/detail?id=3952
R= jvoung@chromium.org, dschuff@chromium.org
TEST=git try
NOTRY=true
(Please LGTM this change and tick the "commit" box)

Review URL: https://codereview.chromium.org/643993003

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13927 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

3 days agoFix build directory for LLVM regression test runner
dschuff@chromium.org [Thu, 16 Oct 2014 21:12:31 +0000 (21:12 +0000)]
Fix build directory for LLVM regression test runner

The LLVM regression tests haven't been running on the x86-32
linux toolchain bot because they were looking for llvm_x86_64_linux_work as their working directory.
This fixes the directory specification.

In doing this I discovered a few extra failing tests, which
I added to known_failures under an extra attribute.

R=stichnot@chromium.org, stichnot@chromium.rog

Review URL: https://codereview.chromium.org/656193002

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13926 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

3 days agofix the check_decoder_test.
shyamsundarr@chromium.org [Thu, 16 Oct 2014 18:10:39 +0000 (18:10 +0000)]
fix the check_decoder_test.

It is supposed to be manually run when changing the dfa.
However it is broken at top of tree. After this change, "scons dfacheckdecoder" passes again.

Note that the gas,objdump, etc are all taken from source control toolchain (e.g. $SVN_ROOT/native_client/toolchain/linux_x86/nacl_x86_newlib/bin/x86_64-nacl-as)

The issues fixed with this change are:

(a) By default, the nacl gas now emits a NACLALIGN symbol. This changes how objdump does the diassembly but not the validator disassembler which can't read symbols. We make gas omit this via '--strip-local-absolute'.

(b) By default, objdump puts a comment with the absolute address for rip relative addressing that our validator disassembler that doesn't know about addresses doesn't.
e.g. # 0x400408: ff 35 e2 0b 20 00     pushq  0x200be2(%rip)        # 0x600ff0
We fix this by generally ignoring comments.

(c) one of the reserved prefetch instructions will have a new mnemonic with AVX512 that the latest version of objdump we use already reflects. note that it is still forbidden.

BUG=https://code.google.com/p/nativeclient/issues/detail?id=3455
TEST=scons dfacheckdecoder
R=ncbray@chromium.org

Review URL: https://codereview.chromium.org/596023002

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13925 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

3 days agoPNaCl: Update LLVM revision in pnacl/COMPONENT_REVISIONS
dschuff@chromium.org [Thu, 16 Oct 2014 18:09:20 +0000 (18:09 +0000)]
PNaCl: Update LLVM revision in pnacl/COMPONENT_REVISIONS

This pulls in the following LLVM changes:

6eb1213: (dschuff@chromium.org) Fix mov register size sandbox-hiding frame setup
5ec5bfe: (dschuff@chromium.org) Ensure jump tables get a unique rodata section if their corresponding function has a unique text section

BUG= https://code.google.com/p/nativeclient/issues/detail?id=3966
BUG= https://code.google.com/p/nativeclient/issues/detail?id=3952
TEST= PNaCl toolchain trybots
R=jvoung@chromium.org

Review URL: https://codereview.chromium.org/660863004

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13924 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

3 days agoUpdate nacl_arm_newlib toolchain
mcgrathr@chromium.org [Thu, 16 Oct 2014 17:42:18 +0000 (17:42 +0000)]
Update nacl_arm_newlib toolchain

This brings in the va_list ABI change.

BUG= https://code.google.com/p/nativeclient/issues/detail?id=3650
TEST= trybots
R=jvoung@chromium.org

Review URL: https://codereview.chromium.org/657143003

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13923 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

3 days agocleanup special case compatibility with old validator for avx.
shyamsundarr@chromium.org [Thu, 16 Oct 2014 17:04:15 +0000 (17:04 +0000)]
cleanup special case compatibility with old validator for avx.

BUG=https://code.google.com/p/nativeclient/issues/detail?id=3327
R=kschimpf@google.com

Review URL: https://codereview.chromium.org/660853002

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13922 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

4 days agoUpdate newlib-based toolchain versions.
sbc@chromium.org [Wed, 15 Oct 2014 22:39:09 +0000 (22:39 +0000)]
Update newlib-based toolchain versions.

This pulls in the following newlib changes:
bf66148 Split posix_spawn.c into 3 different files
a59cc12 libc/posix/posix_spawn.c: include _syslist.h.

BUG= https://code.google.com/p/nativeclient/issues/detail?id=3976
BUG= https://code.google.com/p/nativeclient/issues/detail?id=3973

Review URL: https://codereview.chromium.org/660573006

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13921 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

4 days agoPNaCl: Update LLVM revision in pnacl/COMPONENT_REVISIONS
dschuff@chromium.org [Wed, 15 Oct 2014 21:46:23 +0000 (21:46 +0000)]
PNaCl: Update LLVM revision in pnacl/COMPONENT_REVISIONS

This pulls in the following LLVM changes:

e9104b5: (dschuff@chromium.org) Change usage of naclcall and nacljmp pseudo-instructions to match x86 gas
7197942: (dschuff@chromium.org) Cherrypick Upstream r219811: [MC] Make bundle alignment mode setting idempotent and support nested bundles

BUG= https://code.google.com/p/nativeclient/issues/detail?id=3966
TEST= PNaCl toolchain trybots
R=jvoung@chromium.org

Review URL: https://codereview.chromium.org/661583002

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13920 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

4 days agoReport S_IFCHR in windows sel_ldr stat()/fstat() calls.
sbc@chromium.org [Wed, 15 Oct 2014 20:34:22 +0000 (20:34 +0000)]
Report S_IFCHR in windows sel_ldr stat()/fstat() calls.

This makes windows and POSIX behavior consistent
and removes the sometimes confusing warning message
produced when stdout/stderr/stdin were fstat'd.

TEST=trybots + local testing with stdout as a command prompt.

Review URL: https://codereview.chromium.org/659583002

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13919 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

4 days agotoolchain_build: Update gcc revision
mcgrathr@chromium.org [Wed, 15 Oct 2014 20:08:31 +0000 (20:08 +0000)]
toolchain_build: Update gcc revision

This brings in:

1e19388 Revert va_list padding

BUG= https://code.google.com/p/nativeclient/issues/detail?id=3650
TEST= toolchain trybots
R=jvoung@chromium.org

Review URL: https://codereview.chromium.org/657023009

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13918 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

4 days agoUpdate newlib version
sbc@chromium.org [Wed, 15 Oct 2014 18:05:20 +0000 (18:05 +0000)]
Update newlib version

This brings in a single newlib revision:
bf66148 Split posix_spawn.c into 3 different files
a59cc12 libc/posix/posix_spawn.c: include _syslist.h.

BUG= https://code.google.com/p/nativeclient/issues/detail?id=3976
BUG= https://code.google.com/p/nativeclient/issues/detail?id=3973
R=binji@chromium.org

Review URL: https://codereview.chromium.org/651953002

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13917 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

4 days agoRemove some mostly-unused debug logging for printing memory layout
mseaborn@chromium.org [Wed, 15 Oct 2014 17:28:14 +0000 (17:28 +0000)]
Remove some mostly-unused debug logging for printing memory layout

This code is only called from mmap_test.c.

NaClMemRegionPrinter() duplicates what NaClVmmapDebug() does, which
mmap_test.c also calls.

NaClAppPrintDetails() duplicates what NaClLogAddressSpaceLayout()
does.

This code is one of the few users of Gio and gprintf(), so removing
this would help with removing Gio/gprintf().

BUG=none
TEST=build

Review URL: https://codereview.chromium.org/646483008

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13916 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

4 days agoClean up sysconf() test to address a TODO that depended on a toolchain roll
mseaborn@chromium.org [Wed, 15 Oct 2014 16:37:16 +0000 (16:37 +0000)]
Clean up sysconf() test to address a TODO that depended on a toolchain roll

BUG=https://code.google.com/p/nativeclient/issues/detail?id=3909
BUG=https://code.google.com/p/nativeclient/issues/detail?id=2714
TEST=run_sysconf_pagesize_test

Review URL: https://codereview.chromium.org/655963003

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13915 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

4 days agoAdd NaClDescCreateWithFilePathMetadata fallback.
teravest@chromium.org [Wed, 15 Oct 2014 16:05:13 +0000 (16:05 +0000)]
Add NaClDescCreateWithFilePathMetadata fallback.

If an empty file path is passed to NaClDescCreateWithFilePathMetadata, a
descriptor should be returned without any file info metadata attached to it.

Previously, this function depended on being called with a valid non-empty file
path.

This has been manually tested with a chromium-side change that depends on
this fallback.

BUG=https://code.google.com/p/chromium/issues/detail?id=394130

Review URL: https://codereview.chromium.org/653953003

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13914 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

5 days agoMake PNaCl translator use hard-float ABI for ARM nonsfi target.
mazda@chromium.org [Wed, 15 Oct 2014 05:02:23 +0000 (05:02 +0000)]
Make PNaCl translator use hard-float ABI for ARM nonsfi target.

Also add run_arm_float_abi_test to nonsfi_tests so that the test runs in buildbot.

TEST=./scons platform=arm bitcode=1 nonsfi_nacl=1 \
         pnacl_generate_pexe=0 run_arm_float_abi_test
TEST=try
BUG=https://code.google.com/p/nativeclient/issues/detail?id=3869

Review URL: https://codereview.chromium.org/628813004

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13913 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

5 days agoUpdate .DEPS.git
chrome-admin@google.com [Wed, 15 Oct 2014 02:20:12 +0000 (02:20 +0000)]
Update .DEPS.git

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13912 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

5 days agoUpdate .DEPS.git
chrome-admin@google.com [Wed, 15 Oct 2014 02:19:59 +0000 (02:19 +0000)]
Update .DEPS.git

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13911 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

5 days agoAdding a prefix to distinct perf results so they are graphed separately.
bradnelson@google.com [Wed, 15 Oct 2014 00:13:38 +0000 (00:13 +0000)]
Adding a prefix to distinct perf results so they are graphed separately.

We inadvertently have added perf result tags which are duplicates.
The perf capture plumbing in run_test.py seems to honor only the last
item which ran.

For some time we've been running these variants:
- non-irt
- irt
- gn non-irt
- non-ragel non-irt

When dropping the non-ragel variant we have therefore seen a change in result.

Adding a prefix to each variant so that they are graphed separately.
Preserving the existing naming convention for the non-irt version.
Reusing existing perf environment naming scheme, but including the irt prefix and optional external prefix for use with gn.

Variations will now include:
* '' - without irt
* 'with_irt_' - with irt
* 'gn_' - gn built without irt
* 'gn_with_irt_' - gn built with irt (not currently run on the bots)

BUG=None
TEST=trybots
R=jvoung@chromium.org, nfullagar@google.com, nfullagar@chromium.org

Review URL: https://codereview.chromium.org/649193004

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13910 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

5 days agoARM: Remove Scons support for using ARM soft-float toolchains
mseaborn@chromium.org [Tue, 14 Oct 2014 22:11:00 +0000 (22:11 +0000)]
ARM: Remove Scons support for using ARM soft-float toolchains

Just assume a hard-float ("hf") toolchain on ARM.

This simplifies the toolchain setup a little.

BUG=none
TEST=build

Review URL: https://codereview.chromium.org/646783003

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13909 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

5 days agoScons: Stop scanning for multiple versions of ARM GCC
mseaborn@chromium.org [Tue, 14 Oct 2014 19:41:50 +0000 (19:41 +0000)]
Scons: Stop scanning for multiple versions of ARM GCC

The preferred way to install the ARM GCC cross-compiler is just to
install the Ubuntu package "gcc-arm-linux-gnueabihf".  This works on
both Ubuntu Precise and Trusty, and it installs a GCC without a
version suffix.

Scanning for suffixed versions is unnecessary and creates confusion
about what the preferred way to install ARM GCC is.

BUG=none
TEST=trybots (Ubuntu Precise) + tested manually on Ubuntu Trusty

Review URL: https://codereview.chromium.org/649193003

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13908 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

6 days agoNonSFI mode: irt-exception-handling for nonsfi NaCl on newlib
uekawa@chromium.org [Tue, 14 Oct 2014 11:14:14 +0000 (11:14 +0000)]
NonSFI mode: irt-exception-handling for nonsfi NaCl on newlib

Implements enough sigaction / sigprocmask linux interface on nonsfi newlib in order to get mmap tests to pass on i386 and arm.

This change introduces arch-dependency in IRT code path because it's hard to be CPU independent when we're touching register information.

BUG= https://code.google.com/p/chromium/issues/detail?id=408879
TESTED=./scons run_mmap_test_irt --mode=dbg-host,nacl_irt_test bitcode=1 nonsfi_nacl=1
TESTED=./scons run_mmap_test_irt --mode=dbg-host,nacl_irt_test bitcode=1 nonsfi_nacl=1  platform=arm
TESTED=./scons run_mmap_test bitcode=1 nonsfi_nacl=1
TESTED=./scons --mode=dbg-host,nacl_irt_test nonsfi_tests bitcode=1 nonsfi_nacl=1 pnacl_generate_pexe=0
TESTED=./scons --mode=dbg-host,nacl_irt_test nonsfi_tests bitcode=1 nonsfi_nacl=1 pnacl_generate_pexe=0 platform=arm

Review URL: https://codereview.chromium.org/472233002

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13903 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

6 days agoAllow non-crashing SIGSYS handlers.
rickyz@chromium.org [Mon, 13 Oct 2014 23:24:30 +0000 (23:24 +0000)]
Allow non-crashing SIGSYS handlers.

This is used in the seccomp bpf sandbox to intercept and handle certain
system calls.

BUG= https://code.google.com/p/chromium/issues/detail?id=420206

Review URL: https://codereview.chromium.org/643713005

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13902 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

6 days ago[MIPS] Enhance MIPS testing on its buildbot
petarj@mips.com [Mon, 13 Oct 2014 21:33:27 +0000 (21:33 +0000)]
[MIPS] Enhance MIPS testing on its buildbot

Modify the buildbot scripts so they can be reused for MIPS as well.
Execution of the tests is not yet enabled for MIPS since some tests do
not pass.

BUG= https://code.google.com/p/nativeclient/issues/detail?id=2275
TEST= trigger the buildbot

Review URL: https://codereview.chromium.org/427153003

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13901 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

6 days agoCleanup: Remove GioMemoryFile (gio_mem.c), which is now unused
mseaborn@chromium.org [Mon, 13 Oct 2014 21:31:47 +0000 (21:31 +0000)]
Cleanup: Remove GioMemoryFile (gio_mem.c), which is now unused

The only remaining user of this was the old x86 validators, which have
been removed.

BUG=https://code.google.com/p/nativeclient/issues/detail?id=3454
TEST=build

(I'm adding:
TBR=noone
as a workaround so that I can use the CQ to commit.
Otherwise the CQ complains that the reviewer wasn't a committer.)

Review URL: https://codereview.chromium.org/639123004

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13900 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

6 days agoFix nonnacl_util64 gyp depedencies -- depend on foo64 instead of foo.
jvoung@google.com [Mon, 13 Oct 2014 20:41:40 +0000 (20:41 +0000)]
Fix nonnacl_util64 gyp depedencies -- depend on foo64 instead of foo.

E.g., imc64 instead of imc.

BUG= https://code.google.com/p/nativeclient/issues/detail?id=3977
R=mseaborn@chromium.org

Review URL: https://codereview.chromium.org/650973002

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13899 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

6 days agoUpdate .DEPS.git
chrome-admin@google.com [Mon, 13 Oct 2014 19:43:08 +0000 (19:43 +0000)]
Update .DEPS.git

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13898 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

6 days agoAdd test that checked-in trie matches the DFA.
shyamsundarr@chromium.org [Mon, 13 Oct 2014 19:42:32 +0000 (19:42 +0000)]
Add test that checked-in trie matches the DFA.

It is manual via ./scons dfachecktries for now. However, we can potentially add it to the validator buildbot once we are comfortable with the run time (after getting rid of the old validator tests for example).

BUG=https://code.google.com/p/nativeclient/issues/detail?id=3452
TEST= scons dfachecktries
R=ncbray@chromium.org

Review URL: https://codereview.chromium.org/623573004

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13897 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

6 days agoDelete old x86 validator.
shyamsundarr@chromium.org [Mon, 13 Oct 2014 18:56:54 +0000 (18:56 +0000)]
Delete old x86 validator.

The old x86 validator was only being kept around for comparison testing with the new validator. Given our new testing strategy, it is time to remove it.

TODO(shyamsundarr): Remove stubout mode completely given that only mips validator supports it.

validator/x86/ and sub directories are completely removed.
validator_x86/ now only contains the nccopycode library.

BUG=https://code.google.com/p/nativeclient/issues/detail?id=3454
TEST=trybots
R=mseaborn@chromium.org

Review URL: https://codereview.chromium.org/625923004

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13896 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

6 days agoUpdate .DEPS.git
chrome-admin@google.com [Mon, 13 Oct 2014 15:59:14 +0000 (15:59 +0000)]
Update .DEPS.git

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13895 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

6 days agoRun nacl-clang tests on PNaCl bots
dschuff@chromium.org [Mon, 13 Oct 2014 15:47:10 +0000 (15:47 +0000)]
Run nacl-clang tests on PNaCl bots

Also switch the x86-32 toolchain bot's test code to use buildbot_pnacl.py.
Now the only code that doesn't use it is the ARM hardware bots.

BUG= https://code.google.com/p/nativeclient/issues/detail?id=3946
R=jvoung@chromium.org

Review URL: https://codereview.chromium.org/647023002

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13894 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

6 days agoUpdate .DEPS.git
chrome-admin@google.com [Mon, 13 Oct 2014 15:40:08 +0000 (15:40 +0000)]
Update .DEPS.git

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13893 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

9 days agoEnable x86-32 cross calling convention test for varargs and va_list and method pointers.
jvoung@google.com [Fri, 10 Oct 2014 23:52:28 +0000 (23:52 +0000)]
Enable x86-32 cross calling convention test for varargs and va_list and method pointers.

Now that i686-nacl-gcc is reverted to use the original
va_list def, it matches the i686-nacl-clang va_list.

Also enable and add more method pointer tests for:
BUG= https://code.google.com/p/nativeclient/issues/detail?id=3961
They were disabled before because of a switch in the method
pointer representation, but that should have only affected
le32-nacl-clang, and not native-nacl-clang.

BUG= https://code.google.com/p/nativeclient/issues/detail?id=3650
R=dschuff@chromium.org

Review URL: https://codereview.chromium.org/645983002

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13892 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

9 days agoUpdate revision for PNaCl r13879->r13890
dschuff@chromium.org [Fri, 10 Oct 2014 23:44:00 +0000 (23:44 +0000)]
Update revision for PNaCl r13879->r13890

Pull the following PNaCl changes into NaCl:
  r13880: (petarj@mips.com) PNaCl: Update LLVM revision in pnacl/COMPONENT_REVISIONS
    | 1fe3032: (jfb@chromium.org) PNaCl: Handle invoke instructions in -expand-small-arguments...
    | 8018d65: (petar.jovanovic@rt-rk.com) Apply upstream: [mips] For indirect calls we don't need $gp to point to .got
  r13885: (dschuff@chromium.org) Add back one exclusion to libcxx test known failures.
  r13888: (dschuff@chromium.org) Add nacl-clang testing to SCons
  r13889: (dschuff@chromium.org) Upload packages for nacl_clang libc++ and support libs

BUG= <none>
BUG= https://code.google.com/p/nativeclient/issues/detail?id=3946
BUG= barebones/top_of_sandbox fails for MIPS
R=jvoung@chromium.org
TEST=git try
NOTRY=true
(Please LGTM this change and tick the "commit" box)

Review URL: https://codereview.chromium.org/645173003

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13891 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

9 days agoRemove floating-point support from serialization library
mcgrathr@chromium.org [Fri, 10 Oct 2014 21:19:16 +0000 (21:19 +0000)]
Remove floating-point support from serialization library

The floating-point support in the serialization library is not
actually used.  Building it requires the nonstandard <ieee754.h>
header file, which is not available everywhere.  Drop this dead code.

BUG= none
TEST= trybots
R=sehr@chromium.org

Review URL: https://codereview.chromium.org/647803002

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13890 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

9 days agoUpload packages for nacl_clang libc++ and support libs
dschuff@chromium.org [Fri, 10 Oct 2014 21:08:18 +0000 (21:08 +0000)]
Upload packages for nacl_clang libc++ and support libs

They have been built but not uploaded, so the installed packages are
missing them.

R=jvoung@chromium.org
BUG= https://code.google.com/p/nativeclient/issues/detail?id=3946

Review URL: https://codereview.chromium.org/649813002

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13889 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

9 days agoAdd nacl-clang testing to SCons
dschuff@chromium.org [Fri, 10 Oct 2014 20:43:39 +0000 (20:43 +0000)]
Add nacl-clang testing to SCons

This CL adds a nacl_clang flag to SCons to use nacl-clang.

It adds an implicit dependence on -lpthread to nexes because nacl-clang
always links with it (because libc++ requires it). It's also enabled
for PNaCl; if this ends up working out well for nacl-clang maybe we can
remove the really ugly special-casing for pthread_private in pnacl-ld.

It modifies or disables a few tests, so that everything now build with
nacl-clang (or has a bug filed for why not).

It also ifdefs out the .init and .fini sections from crti/crtn, because
we do not use them with clang.

R=jvoung@chromium.org, mcgrathr@chromium.org, ncbray@chromium.org
BUG= https://code.google.com/p/nativeclient/issues/detail?id=3946

Review URL: https://codereview.chromium.org/639113003

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13888 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

9 days agoMake nonsfi_tests with pnacl_generate_pexe=0 run on buildbot.
mazda@chromium.org [Fri, 10 Oct 2014 17:02:04 +0000 (17:02 +0000)]
Make nonsfi_tests with pnacl_generate_pexe=0 run on buildbot.

TEST=try
BUG=https://code.google.com/p/nativeclient/issues/detail?id=3869

Review URL: https://codereview.chromium.org/644593002

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13887 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

9 days agoUpdate NaCl x86 GCC newlib/glibc revision from 13729 to 13880.
jvoung@chromium.org [Fri, 10 Oct 2014 17:02:01 +0000 (17:02 +0000)]
Update NaCl x86 GCC newlib/glibc revision from 13729 to 13880.

Pulls in reverted va_list definition (r13877) and updated newlib to use abort() from libnacl instead of newlib (r13879).

BUG= https://code.google.com/p/nativeclient/issues/detail?id=3650
BUG= https://code.google.com/p/nativeclient/issues/detail?id=3248
NOTRY=true

Review URL: https://codereview.chromium.org/642213002

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13886 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

9 days agoAdd back one exclusion to libcxx test known failures.
dschuff@chromium.org [Fri, 10 Oct 2014 16:23:02 +0000 (16:23 +0000)]
Add back one exclusion to libcxx test known failures.

It was mistakenly removed in the last update.

R=jfb@chromium.org

Review URL: https://codereview.chromium.org/645953002

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13885 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

10 days agoUpdate .DEPS.git
chrome-admin@google.com [Fri, 10 Oct 2014 01:37:16 +0000 (01:37 +0000)]
Update .DEPS.git

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13884 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

10 days agoUpdate .DEPS.git
chrome-admin@google.com [Fri, 10 Oct 2014 01:36:29 +0000 (01:36 +0000)]
Update .DEPS.git

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13883 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

10 days agoFix: forget to import time.
yyanagisawa@chromium.org [Fri, 10 Oct 2014 01:27:44 +0000 (01:27 +0000)]
Fix: forget to import time.

Add import time to avoid NameError.
This is a follow up of https://codereview.chromium.org/581063002/.

Also, as suggested in the comment of above change, WindowsError will
be logged.

BUG=https://code.google.com/p/nativeclient/issues/detail?id=3934

Review URL: https://codereview.chromium.org/633283002

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13882 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

10 days agoUpdate revision for PNaCl r13868->r13879
dschuff@chromium.org [Fri, 10 Oct 2014 00:46:59 +0000 (00:46 +0000)]
Update revision for PNaCl r13868->r13879

Pull the following PNaCl changes into NaCl:
  r13875: (dyen@chromium.org) Added i686-nacl-as and i686-nacl-ld for PNaCl direct to NaCl toolchain.
  r13879: (dschuff@chromium.org) Update all newlib revisions to 9f95ad0

BUG= None
BUG= https://code.google.com/p/nativeclient/issues/detail?id=3946
R= jvoung@chromium.org, mseaborn@chromium.org, dyen@chromium.org, dschuff@chromium.org, mcgrathr@chromium.org
TEST=git try
NOTRY=true
(Please LGTM this change and tick the "commit" box)

Review URL: https://codereview.chromium.org/642933004

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13881 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

10 days agoPNaCl: Update LLVM revision in pnacl/COMPONENT_REVISIONS
petarj@mips.com [Thu, 9 Oct 2014 23:01:51 +0000 (23:01 +0000)]
PNaCl: Update LLVM revision in pnacl/COMPONENT_REVISIONS

This pulls in the following LLVM changes:

1fe3032: (jfb@chromium.org) PNaCl: Handle invoke instructions in -expand-small-arguments...
8018d65: (petar.jovanovic@rt-rk.com) Apply upstream: [mips] For indirect calls we don't need $gp to point to .got

BUG= barebones/top_of_sandbox fails for MIPS
TEST= PNaCl toolchain trybots

Review URL: https://codereview.chromium.org/637143003

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13880 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

10 days agoUpdate all newlib revisions to 9f95ad0
dschuff@chromium.org [Thu, 9 Oct 2014 22:51:44 +0000 (22:51 +0000)]
Update all newlib revisions to 9f95ad0

This brings in:
commit 43fdb6b573da6189934a4eefc821bdfe22cf247e
Author: Derek Schuff <dschuff@chromium.org>
Date:   Thu Oct 9 09:34:06 2014 -0700

    Define ABORT_PROVIDED when building for NaCl

    libnacl provides a version of abort that exits via a trap rather than
    calling exit(1); this is is more useful for debugging. Define ABORT_PROVIDED
    so that we always use the version from libnacl instead of newlib's.

R=jvoung@chromium.org, mcgrathr@chromium.org, mseaborn@chromium.org
    BUG= https://code.google.com/p/nativeclient/issues/detail?id=3946
    BUG= https://code.google.com/p/nativeclient/issues/detail?id=3248

    Review URL: https://codereview.chromium.org/640083002

And (other that in PNaCl, which had it already):
commit c063c56927b0e353d7981b4a058d7bd9deacf34d
Author: Ben Smith <binji@chromium.org>
Date:   Thu Jun 5 13:47:39 2014 -0700

    Fix definition of INTPTR_{MIN,MAX} in stdint.h

    The newlib headers currently check for __INTPTR_TYPE__ and assume it
    means that __INTPTR_MAX__ is defined.

    This is true for newer versions of GCC, but it is not true for
    pnacl-clang 3.4 (__INTPTR_TYPE__ is defined, but __INTPTR_{MIN,MAX}__
    are not).

    BUG=none
    TEST=built pnacl toolchain locally

    Review URL: https://codereview.chromium.org/315213004

Review URL: https://codereview.chromium.org/648493002

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13879 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

10 days agoRevert "Pass naclsdk_validate=0 to scons runs run by main waterfall bots"
dschuff@chromium.org [Thu, 9 Oct 2014 22:11:13 +0000 (22:11 +0000)]
Revert "Pass naclsdk_validate=0 to scons runs run by main waterfall bots"

This reverts r13765, git rev d678f43b2f5f1d2681b058b607f80c60e8e3026d.

The PNaCl toolchain has been rolled to include expected directories.

R=jvoung@chromium.org
BUG=None

Review URL: https://codereview.chromium.org/642533002

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13878 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

10 days agoUpdate GCC and GLIBC revisions to revert va_list definition.
jvoung@chromium.org [Thu, 9 Oct 2014 21:53:31 +0000 (21:53 +0000)]
Update GCC and GLIBC revisions to revert va_list definition.

BUG= https://code.google.com/p/nativeclient/issues/detail?id=3650
NOTRY=true

Review URL: https://codereview.chromium.org/630063005

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13877 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

10 days agostop building/testing old x86 validator.
shyamsundarr@chromium.org [Thu, 9 Oct 2014 20:29:26 +0000 (20:29 +0000)]
stop building/testing old x86 validator.

We will remove the source code in the followup change.
https://codereview.chromium.org/625923004/

BUG=https://code.google.com/p/nativeclient/issues/detail?id=3454
R=mseaborn@chromium.org

Review URL: https://codereview.chromium.org/636933004

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13876 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

10 days agoAdded i686-nacl-as and i686-nacl-ld for PNaCl direct to NaCl toolchain.
dyen@chromium.org [Thu, 9 Oct 2014 20:24:55 +0000 (20:24 +0000)]
Added i686-nacl-as and i686-nacl-ld for PNaCl direct to NaCl toolchain.

For all targets other than windows (windows versions will be added in
a separate CL), a redirector has been added for i686-nacl-as and
i686-nacl-ld directing them to their x868_x86-nacl variants with the
appropriate arguments.

R=dschuff@chromium.org
BUG=None
TEST=trybots

Review URL: https://codereview.chromium.org/640663004

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13875 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

10 days agoFixed issue on windows where directory removal sometimes fails.
dyen@chromium.org [Thu, 9 Oct 2014 20:24:51 +0000 (20:24 +0000)]
Fixed issue on windows where directory removal sometimes fails.

R=bradnelson@google.com, jvoung@chromium.org
BUG=None
TEST=trybots

Review URL: https://codereview.chromium.org/636173004

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13874 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

11 days agoUpdate revision for PNaCl r13828->r13868
dschuff@chromium.org [Thu, 9 Oct 2014 04:50:46 +0000 (04:50 +0000)]
Update revision for PNaCl r13828->r13868

Pull the following PNaCl changes into NaCl:
  r13832: (dschuff@chromium.org) Add newlib build for direct-to-nacl x86_64 and i686
  r13833: (dschuff@chromium.org) Remove unexpected passes from libc++ known failures
  r13859: (dschuff@chromium.org) Build for direct-to-nacl libs_support and libc++
  r13868: (dschuff@chromium.org) Add setjmp and a simple crtbegin for nacl-clang

BUG= https://code.google.com/p/nativeclient/issues/detail?id=3946
BUG= <none>
R= jvoung@chromium.org, noelallen@chromium.org, dschuff@chromium.org, jfb@chromium.org
TEST=git try
NOTRY=true
(Please LGTM this change and tick the "commit" box)

Review URL: https://codereview.chromium.org/642633002

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13873 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

11 days agoUpdate .DEPS.git
chrome-admin@google.com [Thu, 9 Oct 2014 01:36:09 +0000 (01:36 +0000)]
Update .DEPS.git

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13872 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

11 days agoUpdate .DEPS.git
chrome-admin@google.com [Thu, 9 Oct 2014 01:35:31 +0000 (01:35 +0000)]
Update .DEPS.git

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13871 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

11 days agoUpdate .DEPS.git
chrome-admin@google.com [Wed, 8 Oct 2014 19:31:14 +0000 (19:31 +0000)]
Update .DEPS.git

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13870 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

11 days agoUpdate .DEPS.git
chrome-admin@google.com [Wed, 8 Oct 2014 19:29:47 +0000 (19:29 +0000)]
Update .DEPS.git

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13869 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

11 days agoAdd setjmp and a simple crtbegin for nacl-clang
dschuff@chromium.org [Wed, 8 Oct 2014 18:51:55 +0000 (18:51 +0000)]
Add setjmp and a simple crtbegin for nacl-clang

Setjmp is a build of PNaCl's setjmp because we aren't getting newlib's
setjmp since we target it as le32. Once we fix the assembler issues
we can use that instead.

crtbegin is an aggregate of our bitcode and native crtbegin files. It
looks about right and it makes our tests compile, but EH doesn't work
yet. Before I fix EH though I want to start building all the tests
in SCons.

Also bump clang COMPONENT_REVISIONS.

R=jvoung@chromium.org
BUG= https://code.google.com/p/nativeclient/issues/detail?id=3946

Review URL: https://codereview.chromium.org/640823002

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13868 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

11 days agoAdd test for thread-safety of C++ function-local static initialisers
mseaborn@chromium.org [Wed, 8 Oct 2014 17:43:31 +0000 (17:43 +0000)]
Add test for thread-safety of C++ function-local static initialisers

This feature currently works OK with PNaCl (when using libc++) and
with nacl-glibc, but not with the x86-64 and ARM newlib builds of
libstdc++.

BUG= https://code.google.com/p/nativeclient/issues/detail?id=3948
TEST= run_cpp_threadsafe_static_init_test

Review URL: https://codereview.chromium.org/569703002

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13867 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

11 days agoFix typo in tools/linux.x86_64.prep.sh (gilb vs glib)
jvoung@chromium.org [Wed, 8 Oct 2014 17:30:18 +0000 (17:30 +0000)]
Fix typo in tools/linux.x86_64.prep.sh (gilb vs glib)

BUG=none
R=dschuff@chromium.org

Review URL: https://codereview.chromium.org/635383002

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13866 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

12 days agoNon-SFI Mode: Build nacl_helper_nonsfi also with target_arch=="x64".
hidehiko@chromium.org [Wed, 8 Oct 2014 08:57:53 +0000 (08:57 +0000)]
Non-SFI Mode: Build nacl_helper_nonsfi also with target_arch=="x64".

This will help to test nacl_helper_nonsfi on build bot.
We currently rely on linux_rel_precise32, which is linux
32bit build bot. With this change we can use other build
bots for nacl_helper_nonsfi testing, too.

BUG=https://code.google.com/p/chromium/issues/detail?id=358465
TEST=Ran trybots. Patched this CL and https://codereview.chromium.org/623123002/ locally, and built 64bit chrome then made sure nacl_helper_nonsfi is built.

Review URL: https://codereview.chromium.org/630343002

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13865 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

12 days agoUpdate .DEPS.git
chrome-admin@google.com [Wed, 8 Oct 2014 04:41:11 +0000 (04:41 +0000)]
Update .DEPS.git

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13864 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

12 days agoUpdate .DEPS.git
chrome-admin@google.com [Wed, 8 Oct 2014 04:40:32 +0000 (04:40 +0000)]
Update .DEPS.git

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13863 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

12 days agoRevert "Clean up a few old path renamings that were not fully updated."
jvoung@chromium.org [Tue, 7 Oct 2014 23:06:09 +0000 (23:06 +0000)]
Revert "Clean up a few old path renamings that were not fully updated."

This reverts commit 662a2330e920abd1c4f985417869bdf82473ba72.

The gyp compile steps seem to be failing on the glibc bots.
Either it can't find the compiler anymore, or something is
up with goma. Speculatively revert to see if that helps.

BUG=none
TBR=dyen@chromium.org,bradnelson@chromium.org

Review URL: https://codereview.chromium.org/631403002

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13862 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

12 days agoUpdate .DEPS.git
chrome-admin@google.com [Tue, 7 Oct 2014 22:49:12 +0000 (22:49 +0000)]
Update .DEPS.git

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13861 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

12 days agoUpdate .DEPS.git
chrome-admin@google.com [Tue, 7 Oct 2014 22:48:59 +0000 (22:48 +0000)]
Update .DEPS.git

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13860 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

12 days agoBuild for direct-to-nacl libs_support and libc++
dschuff@chromium.org [Tue, 7 Oct 2014 22:31:20 +0000 (22:31 +0000)]
Build for direct-to-nacl libs_support and libc++

For now libs_support has copies of some of the translator support files.
libgcc and libgcc_eh will stay as they are for the near future, but
crtbegin.o needs modifications or a different implementation; the next CL
will fix that.

R=jvoung@chromium.org
BUG= https://code.google.com/p/nativeclient/issues/detail?id=3946

Review URL: https://codereview.chromium.org/635893002

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13859 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

12 days agoClean up a few old path renamings that were not fully updated.
jvoung@chromium.org [Tue, 7 Oct 2014 16:55:33 +0000 (16:55 +0000)]
Clean up a few old path renamings that were not fully updated.

At some point we had os_x86_nacl_x86/nacl_x86_blah, but now it's just
os_x86/nacl_x86_blah. Dropped the "_nacl_x86"; it's cleaner.
However, a few comments and rm -rf paths weren't updated.

This was also left in test_build.py for testing the gyp build. This was for
finding the libdir for glibc, but it looks like we never test glibc's
hello world built by gyp:

['disable_glibc==0',{
              'variables': {
                'tools': '--tools=newlib',
              },
            }, {
              'variables': {
                'tools': '--tools=newlib',
              },
            }],

BUG=none
R=bradnelson@google.com, dyen@chromium.org

Review URL: https://codereview.chromium.org/626283003

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13857 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

13 days agoUpdate .DEPS.git
chrome-admin@google.com [Mon, 6 Oct 2014 22:11:22 +0000 (22:11 +0000)]
Update .DEPS.git

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13856 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

13 days agoUpdate .DEPS.git
chrome-admin@google.com [Mon, 6 Oct 2014 22:07:38 +0000 (22:07 +0000)]
Update .DEPS.git

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13855 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

13 days agoUpdate .DEPS.git
chrome-admin@google.com [Mon, 6 Oct 2014 22:02:31 +0000 (22:02 +0000)]
Update .DEPS.git

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13854 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

13 days agoUpdate .DEPS.git
chrome-admin@google.com [Mon, 6 Oct 2014 21:58:59 +0000 (21:58 +0000)]
Update .DEPS.git

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13853 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

13 days agoUpdate .DEPS.git
chrome-admin@google.com [Mon, 6 Oct 2014 21:54:56 +0000 (21:54 +0000)]
Update .DEPS.git

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13852 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

13 days agoIncreasing ninja to -j50 to lean on goma more.
bradnelson@google.com [Mon, 6 Oct 2014 21:53:06 +0000 (21:53 +0000)]
Increasing ninja to -j50 to lean on goma more.

BUG=https://code.google.com/p/nativeclient/issues/detail?id=3933
TEST=trybots
R=mseaborn@chromium.org

Review URL: https://codereview.chromium.org/583873002

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13851 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

13 days agoUpdate .DEPS.git
chrome-admin@google.com [Mon, 6 Oct 2014 21:50:33 +0000 (21:50 +0000)]
Update .DEPS.git

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13850 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

13 days agoUpdate .DEPS.git
chrome-admin@google.com [Mon, 6 Oct 2014 21:44:23 +0000 (21:44 +0000)]
Update .DEPS.git

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13849 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

13 days agoUpdate .DEPS.git
chrome-admin@google.com [Mon, 6 Oct 2014 21:38:28 +0000 (21:38 +0000)]
Update .DEPS.git

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13848 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

13 days agoUpdate .DEPS.git
chrome-admin@google.com [Mon, 6 Oct 2014 21:34:11 +0000 (21:34 +0000)]
Update .DEPS.git

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13847 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

13 days agoUpdate .DEPS.git
chrome-admin@google.com [Mon, 6 Oct 2014 21:29:41 +0000 (21:29 +0000)]
Update .DEPS.git

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13846 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

13 days agoUpdate .DEPS.git
chrome-admin@google.com [Mon, 6 Oct 2014 21:24:01 +0000 (21:24 +0000)]
Update .DEPS.git

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13845 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

13 days agoUpdate .DEPS.git
chrome-admin@google.com [Mon, 6 Oct 2014 21:18:14 +0000 (21:18 +0000)]
Update .DEPS.git

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13844 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

13 days agoUpdate .DEPS.git
chrome-admin@google.com [Mon, 6 Oct 2014 21:10:11 +0000 (21:10 +0000)]
Update .DEPS.git

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13843 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

13 days agoUpdate .DEPS.git
chrome-admin@google.com [Mon, 6 Oct 2014 21:02:53 +0000 (21:02 +0000)]
Update .DEPS.git

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client@13842 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2