Commit graph

37811 commits

Author SHA1 Message Date
Treehugger Robot
315373dcab Merge "Failures to parse SYSCALLS.TXT-like files should be errors." 2022-11-09 17:19:13 +00:00
Elliott Hughes
8e826775fb Use the same union in riscv64's ucontext.
We don't need this (any more than arm64 does), because riscv64 is too
new to have had a too-small sigset_t, but it's useful for source code
compatibility with code that needs to build on arm32/x86 too.

Test: treehugger
Change-Id: Ied5f64d9094bc7d31c059f82f9e4ffe9b8ca4061
2022-11-09 16:38:00 +00:00
Elliott Hughes
a33c6664e1 Merge "Sync with upstream NetBSD." am: ebd2f76c9b
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2290937

Change-Id: Ieab39ba997d5f87b4ada8fea79e6a5b96ac5234a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-09 16:23:23 +00:00
Elliott Hughes
00211554a7 Remove strtoq() and strtouq().
These have been aliases for strtoll() and strtoull() since L, by
accident. We've never exposed them in the headers, and they're unused by
any apps. Let's fix the inconsistency between libc.so and its headers by
removing the aliases.

Bug: https://github.com/android/ndk/issues/1803
Test: treehugger
Change-Id: I87de7831c04b3e450a44e9f0386cacb73793e393
2022-11-09 16:15:05 +00:00
Elliott Hughes
ebd2f76c9b Merge "Sync with upstream NetBSD." 2022-11-09 16:03:31 +00:00
Automerger Merge Worker
a42733c219 Merge "Merge "Disable MemtagNoteTest#SEGV for native bridge" into android13-tests-dev am: 2934645119" am: b1638983e6
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2290233

Change-Id: I9a719b87f5175ced2f8ceed5150b819ec8154b11
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-09 07:08:54 +00:00
Automerger Merge Worker
b1638983e6 Merge "Merge "Disable MemtagNoteTest#SEGV for native bridge" into android13-tests-dev am: 2934645119" 2022-11-09 06:25:24 +00:00
Treehugger Robot
fd0b800d11 Merge "Disable MemtagNoteTest#SEGV for native bridge" into android13-tests-dev am: 2934645119
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2290233

Change-Id: I4dc944e20df86d16f51e1c168ba44e2a19801b84
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-09 06:25:21 +00:00
Treehugger Robot
2934645119 Merge "Disable MemtagNoteTest#SEGV for native bridge" into android13-tests-dev 2022-11-09 05:55:07 +00:00
Elliott Hughes
69a3932e77 Merge "Disable MemtagNoteTest#SEGV for native bridge" am: 2d5217ced1
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2291713

Change-Id: I8c46e7842b08db9f2d57039c652ab88a1f9d7e2e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-08 22:14:48 +00:00
Elliott Hughes
2d5217ced1 Merge "Disable MemtagNoteTest#SEGV for native bridge" 2022-11-08 21:34:18 +00:00
Treehugger Robot
b75ed73c54 Merge "Fix a typo." am: ee267053bc
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2290027

Change-Id: Ia609cf85e298974fd4b6f50aac09c58d1e5baa5e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-08 19:56:07 +00:00
Treehugger Robot
ee267053bc Merge "Fix a typo." 2022-11-08 19:30:09 +00:00
Elliott Hughes
1c1dfb82f4 Failures to parse SYSCALLS.TXT-like files should be errors.
Previously we'd output a diagnostic but just blindly carry on.

Test: ran locally without my previous fix
Change-Id: I99a2411eae5bd72d97b6a4335c699d1e44d7b55a
2022-11-08 17:13:59 +00:00
dimitry
2cc2910e70 Disable MemtagNoteTest#SEGV for native bridge
This commit disables MemtagNoteTest#SEGV when running
on native bridge.

Bug: http://b/242170715
Test: run arm64 Bionic tests on T Emulator
Change-Id: I8ae99c5ba22f09a8d7e751f8bb4938894abe231f
2022-11-08 05:50:07 +00:00
Elliott Hughes
c8bf923bf0 Fix a typo.
No, I don't know why this is a warning rather than an error. I'll fix
that.

Test: treehugger
Change-Id: Ib3cb50fc4817e3fd418d2d721bda3819b0683b7c
2022-11-08 02:52:29 +00:00
Elliott Hughes
88e4e60a75 Sync with upstream NetBSD.
Test: treehugger
Change-Id: Ia82ba4a0c00a47377240e5d9a85dc30deb5ce3b7
2022-11-08 02:51:48 +00:00
dimitry
dd64a6e28a Disable MemtagNoteTest#SEGV for native bridge
This commit disables MemtagNoteTest#SEGV when running
on native bridge.

Bug: http://b/242170715
Test: run arm64 Bionic tests on T Emulator
Change-Id: I8ae99c5ba22f09a8d7e751f8bb4938894abe231f
2022-11-07 18:39:42 +01:00
Christopher Ferris
9f930ddaf6 Merge "Update to v6.0 kernel headers." am: 09db6416bc
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2238481

Change-Id: I134c41c6555e911407e0003374a008e9f0bc3a73
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-03 01:58:48 +00:00
Christopher Ferris
09db6416bc Merge "Update to v6.0 kernel headers." 2022-11-03 01:20:02 +00:00
Automerger Merge Worker
72b7c44e8a Merge "Merge "Fix-up for change in pwd/grp ids for PRNG seeder daemon" into android13-tests-dev am: d06e75b7e3" am: 5ac1ad606a
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2273426

Change-Id: Ib38b1a43cf470ac7882f22ca9a209b49eed44695
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-31 08:52:20 +00:00
Automerger Merge Worker
5ac1ad606a Merge "Merge "Fix-up for change in pwd/grp ids for PRNG seeder daemon" into android13-tests-dev am: d06e75b7e3" 2022-10-31 07:54:42 +00:00
Orion Hodson
974b15e0ab Merge "Fix-up for change in pwd/grp ids for PRNG seeder daemon" into android13-tests-dev am: d06e75b7e3
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2273426

Change-Id: I4d17c2c68d9661530371c53d109410397edbe7c5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-31 07:54:37 +00:00
Orion Hodson
d06e75b7e3 Merge "Fix-up for change in pwd/grp ids for PRNG seeder daemon" into android13-tests-dev 2022-10-31 07:34:05 +00:00
Treehugger Robot
4eeafde0d2 Merge "Remove fallback C sqrt/sqrtf." am: d8b0171e35
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2276977

Change-Id: I7f10e02e7d0a7392e56fcedae199afa35b8c7aeb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-29 00:02:19 +00:00
Treehugger Robot
d8b0171e35 Merge "Remove fallback C sqrt/sqrtf." 2022-10-28 23:07:49 +00:00
Elliott Hughes
e0942db080 Remove fallback C sqrt/sqrtf.
Everyone uses assembler.

Test: treehugger
Change-Id: Id88b029e7d3558f203223d5153ec6098c7230d64
2022-10-28 20:18:17 +00:00
Treehugger Robot
e78cca0166 Merge "Simplify the libm build now we don't support non-neon." am: 836753a22b
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2267512

Change-Id: I2460512dca8ed86f468fe08015083a4499abd647
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-28 18:50:17 +00:00
Treehugger Robot
836753a22b Merge "Simplify the libm build now we don't support non-neon." 2022-10-28 17:18:12 +00:00
Treehugger Robot
dd74d442df Merge "arm64: use llvm's builtins for lround/lroundf/llround/llroundf." am: a854888c67
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2275927

Change-Id: Ia5af8d07bc6f9b33c37bca168fb8133a6e6b032e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-28 04:17:24 +00:00
Treehugger Robot
a854888c67 Merge "arm64: use llvm's builtins for lround/lroundf/llround/llroundf." 2022-10-28 03:40:28 +00:00
Elliott Hughes
0cbb902e0d arm64: use llvm's builtins for lround/lroundf/llround/llroundf.
Test: objdump
Change-Id: I1c5c4dc5cd769f0580d91355e4e5706f9bce46c1
2022-10-28 00:00:00 +00:00
Orion Hodson
f5fd5adf04 Fix-up for change in pwd/grp ids for PRNG seeder daemon
The PRNG seeder daemon is introduced in TM-QPR2 which can lead to
breakage running Android 13 CTS tests depending on when the platform
and CTS tests are built.

Fix: 253185870
Test: run cts --module CtsBionicTestCases
Change-Id: I94fa0aa2f32b09222aee08891e7643bf14d1a204
2022-10-27 11:21:29 +01:00
Treehugger Robot
84725778d8 Merge "arm64: use llvm's builtins for copysign() and copysignf()." am: 150829d73d
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2271737

Change-Id: Ib8f1d36534b4171fe01485427d23b01550446135
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-27 00:24:40 +00:00
Treehugger Robot
150829d73d Merge "arm64: use llvm's builtins for copysign() and copysignf()." 2022-10-26 23:41:20 +00:00
Treehugger Robot
ffeadc6029 Merge "riscv64: don't go via the PLT for setjmp." am: 77110736f0
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2271461

Change-Id: I7c79afa94cb467e724fd18acc16eadbe93d83b4f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-26 22:37:42 +00:00
Elliott Hughes
46f24a18c0 arm64: use llvm's builtins for copysign() and copysignf().
Test: objdump
Change-Id: I26ab2c4745c5f64140cf781a9f42bce6fc79e1ef
2022-10-26 21:55:34 +00:00
Treehugger Robot
77110736f0 Merge "riscv64: don't go via the PLT for setjmp." 2022-10-26 21:39:23 +00:00
Elliott Hughes
6a1dc51679 riscv64: don't go via the PLT for setjmp.
I don't think we need or want to do this. Most other architectures
don't.

Test: bionic-unit-tests-static
Change-Id: I3ad31926909caf0a37e73ac6cbac1fecd02ea6de
2022-10-26 19:53:35 +00:00
Treehugger Robot
c559f1df4c Merge "Fix stdio -NaN tests for riscv64." am: 4b0e16bc72
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2269253

Change-Id: Ib3b87b740a2a95bde2e7672a2919bfdceb19f4f7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-26 02:20:38 +00:00
Treehugger Robot
39d60d47b1 Merge "Add riscv64 lrint.S." am: 5fa1c3ae37
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2269251

Change-Id: Ia1799619082913ae16d76bbf3fa814351c81e342
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-26 02:20:28 +00:00
Treehugger Robot
4b0e16bc72 Merge "Fix stdio -NaN tests for riscv64." 2022-10-26 02:17:22 +00:00
Treehugger Robot
5fa1c3ae37 Merge "Add riscv64 lrint.S." 2022-10-26 01:53:24 +00:00
Elliott Hughes
e0a9a3836c Fix stdio -NaN tests for riscv64.
riscv64 hates nans. From the spec: "Except when otherwise stated, if the
result of a floating-point operation is NaN, it is the canonical NaN.
The canonical NaN has a positive sign and all significand bits clear
except the MSB, a.k.a. the quiet bit."

This broke our tests here because the float-to-double instruction isn't
one of the "otherwise stated" cases, so it turns -nanf() into +nan().
The sign manipulation instructions are "otherwise stated" cases, though,
so as long as we avoid a conversion we're fine. And we didn't actually
_need_ a float here (pretty much by definition, since varargs means you
always end up with a double anyway), so we can just simplify things and
switch to using doubles directly to fix the tests.

Test: bionic-unit-tests-static
Change-Id: I13aa452dd6cc8708275f7676b37fc772b37a7b32
2022-10-25 22:56:43 +00:00
Elliott Hughes
4ceb3474be Add riscv64 lrint.S.
This is mainly just to match what we have for arm64.

The test failures before and after this change are all for the long
double variant, which this change doesn't touch. (The problem there is
that clang is calling `__fixtfdi` for the cast in lrintl(), but that
doesn't respect the current rounding mode, which lrintl() is required
to do. `#pragma STDC FENV_ACCESS ON` doesn't fix this, so there's going
to be some llvm work needed to fix this.)

I've replaced the ASSERTs with EXPECTs in the relevant test to ensure
we're checking all the other assertions despite the `long double`
failures.

Test: bionic-unit-tests-static
Change-Id: Ia24bf21619631b6f8b3b607d30536011bb4cd826
2022-10-25 22:27:10 +00:00
Treehugger Robot
f35118046c Merge "Add trivial assembler implementations of sqrt()/sqrtf()." am: e21affe39f
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2268148

Change-Id: Ib6e939d123ca1961bd48d54d6d2fac855787b0e7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-24 23:07:12 +00:00
Treehugger Robot
e21affe39f Merge "Add trivial assembler implementations of sqrt()/sqrtf()." 2022-10-24 22:38:46 +00:00
Elliott Hughes
a70e345da0 Simplify the libm build now we don't support non-neon.
Test: treehugger
Change-Id: I582ee2477186ba25a455b3b63f74e915be861365
2022-10-24 21:57:57 +00:00
Elliott Hughes
a4398452fd Add trivial assembler implementations of sqrt()/sqrtf().
10x faster in the usual bionic benchmarks.

Test: treehugger
Change-Id: If121cb1ed1ff0756310f34cbaa2c14e28484f1b8
2022-10-24 20:31:09 +00:00
Treehugger Robot
33064ce549 Merge "riscv64: build the linker." am: a97ac8c069
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2264528

Change-Id: I101cbdd86cf172a43e0e32d48097c5a2bc8515bd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-22 06:09:07 +00:00