OSDN Git Service
Dmitriy Ivanov [Wed, 3 Sep 2014 22:38:53 +0000 (22:38 +0000)]
am
40412333: am
8da304b9: Merge "Make string tests check all alignment combinations"
* commit '
40412333b42910e3edde20072aaf32afe3aaca7f':
Make string tests check all alignment combinations
Dmitriy Ivanov [Wed, 3 Sep 2014 22:29:23 +0000 (22:29 +0000)]
am
8da304b9: Merge "Make string tests check all alignment combinations"
* commit '
8da304b997bc0f81ebb30fadc79249fafc1c6fce':
Make string tests check all alignment combinations
Dmitriy Ivanov [Wed, 3 Sep 2014 22:08:56 +0000 (22:08 +0000)]
Merge "Make string tests check all alignment combinations"
Dan Albert [Wed, 3 Sep 2014 20:09:51 +0000 (20:09 +0000)]
am
c71129a4: am
28f17701: Merge "Don\'t fail a test just because we aren\'t root."
* commit '
c71129a4e82211bc2db62ea10311548da5e2c20f':
Don't fail a test just because we aren't root.
Dan Albert [Wed, 3 Sep 2014 19:59:14 +0000 (19:59 +0000)]
am
28f17701: Merge "Don\'t fail a test just because we aren\'t root."
* commit '
28f1770101d84153e100ad7bc0628b4ef3b6e85c':
Don't fail a test just because we aren't root.
Dan Albert [Wed, 3 Sep 2014 18:37:11 +0000 (18:37 +0000)]
Merge "Don't fail a test just because we aren't root."
Dan Albert [Wed, 3 Sep 2014 18:30:21 +0000 (11:30 -0700)]
Don't fail a test just because we aren't root.
If the tests are not being run as root, emit a message and don't
continue with the test.
Change-Id: I352e1a4162caaeb18b81b8daf44797009756dcd9
Elliott Hughes [Wed, 3 Sep 2014 09:12:52 +0000 (09:12 +0000)]
am
ce19b10f: am
cb093d1f: Merge "Upgrade bionic to tzdata2014g." into lmp-dev
* commit '
ce19b10f5f9db0e73d911faa3ce35ddd2b0837bf':
Upgrade bionic to tzdata2014g.
Hans Boehm [Wed, 3 Sep 2014 09:12:51 +0000 (09:12 +0000)]
am
5c2c5443: am
9ac60bf8: Make stdatomic.h work with gcc4.6 host compiler
* commit '
5c2c5443823e30bfb02394f4fc2da06a74bd58df':
Make stdatomic.h work with gcc4.6 host compiler
Andreas Gampe [Wed, 3 Sep 2014 09:12:50 +0000 (09:12 +0000)]
am
c16f0486: resolved conflicts for merge of
2b10e2f1 to lmp-dev-plus-aosp
* commit '
c16f0486fca0df1125cc381d3f4ef3b652d72d29':
Undefine _Atomic before redefining
Elliott Hughes [Wed, 3 Sep 2014 05:07:24 +0000 (05:07 +0000)]
am
cb093d1f: Merge "Upgrade bionic to tzdata2014g." into lmp-dev
* commit '
cb093d1f55701da419d1013cc3e6fbb8aea3e957':
Upgrade bionic to tzdata2014g.
Hans Boehm [Wed, 3 Sep 2014 05:07:24 +0000 (05:07 +0000)]
am
9ac60bf8: Make stdatomic.h work with gcc4.6 host compiler
* commit '
9ac60bf82b1f0e316666b862e9924f90caa60342':
Make stdatomic.h work with gcc4.6 host compiler
Dmitriy Ivanov [Wed, 3 Sep 2014 05:04:25 +0000 (05:04 +0000)]
am
69fde6b4: am
3b10ba6f: Merge "Add some missing dlclose(.)"
* commit '
69fde6b4a7c7674c8bbc8fba0b82bcc25fdf0539':
Add some missing dlclose(.)
Dan Albert [Wed, 3 Sep 2014 05:04:20 +0000 (05:04 +0000)]
am
f3ba9f71: am
c7de9191: Merge "Start math tests with a clean fenv."
* commit '
f3ba9f7171021417a0b6373ecf52136fb5cc9a76':
Start math tests with a clean fenv.
Dan Albert [Wed, 3 Sep 2014 05:04:17 +0000 (05:04 +0000)]
am
95742d36: am
847e52b9: Merge "Prevent a few test pthread keys from leaking."
* commit '
95742d36038b459704bdd32e22df35956b5aca0d':
Prevent a few test pthread keys from leaking.
Hans Boehm [Wed, 3 Sep 2014 05:04:16 +0000 (05:04 +0000)]
am
e8d77291: resolved conflicts for merge of
c8cf3513 to lmp-dev-plus-aosp
* commit '
e8d77291670ad435491a08f6c3d83881063e2e12':
Fix, generalize stdatomic.h; improve test.
Elliott Hughes [Wed, 3 Sep 2014 05:03:49 +0000 (05:03 +0000)]
am
6c696754: am
ec95a9cf: Merge "MIPS64 syscall() arguments"
* commit '
6c69675423f3375ba4d9dadfaf9502a15576158c':
MIPS64 syscall() arguments
Andreas Gampe [Wed, 3 Sep 2014 05:02:48 +0000 (22:02 -0700)]
resolved conflicts for merge of
2b10e2f1 to lmp-dev-plus-aosp
Change-Id: Ia41583773abbbe1f52d72d1e7f4b925e621d28ff
Dmitriy Ivanov [Wed, 3 Sep 2014 01:08:16 +0000 (01:08 +0000)]
am
3b10ba6f: Merge "Add some missing dlclose(.)"
* commit '
3b10ba6f1b743ddced32474891ff6d1cb83c027a':
Add some missing dlclose(.)
Dmitriy Ivanov [Wed, 3 Sep 2014 00:36:22 +0000 (00:36 +0000)]
Merge "Add some missing dlclose(.)"
Dmitriy Ivanov [Wed, 3 Sep 2014 00:31:44 +0000 (17:31 -0700)]
Add some missing dlclose(.)
Bug:
17358010
Change-Id: I9e427b7681f1a8fe890b0b47812d9e65ab95c792
Dan Albert [Tue, 2 Sep 2014 23:35:33 +0000 (23:35 +0000)]
am
c7de9191: Merge "Start math tests with a clean fenv."
* commit '
c7de919129098bac259f66f973888b1814ae0d1a':
Start math tests with a clean fenv.
Dan Albert [Tue, 2 Sep 2014 23:11:42 +0000 (23:11 +0000)]
Merge "Start math tests with a clean fenv."
Dan Albert [Tue, 2 Sep 2014 23:02:57 +0000 (23:02 +0000)]
am
847e52b9: Merge "Prevent a few test pthread keys from leaking."
* commit '
847e52b9b7bca9dee20e33d1006dfc23885e7494':
Prevent a few test pthread keys from leaking.
Dan Albert [Tue, 2 Sep 2014 23:00:10 +0000 (16:00 -0700)]
Start math tests with a clean fenv.
We always want the default floating point environment when running these
tests.
Bug:
17358010
Change-Id: I6ca2552e9f2d3e07d7b9dcaf0aec66905401c466
Dan Albert [Tue, 2 Sep 2014 22:43:17 +0000 (22:43 +0000)]
Merge "Prevent a few test pthread keys from leaking."
Hans Boehm [Tue, 2 Sep 2014 22:24:33 +0000 (15:24 -0700)]
resolved conflicts for merge of
c8cf3513 to lmp-dev-plus-aosp
Change-Id: If1181e3496d0309eebbaa1f1d2696269e61c64bc
Dan Albert [Tue, 2 Sep 2014 22:24:26 +0000 (15:24 -0700)]
Prevent a few test pthread keys from leaking.
Bug:
17358010
Change-Id: Ie718dc215ddfd431650295a1630c1b1716760c3d
Elliott Hughes [Tue, 2 Sep 2014 21:39:02 +0000 (21:39 +0000)]
Merge "Upgrade bionic to tzdata2014g." into lmp-dev
Elliott Hughes [Tue, 2 Sep 2014 21:18:55 +0000 (21:18 +0000)]
am
ec95a9cf: Merge "MIPS64 syscall() arguments"
* commit '
ec95a9cf11f7c4d2211c61da7ce05262a54409d1':
MIPS64 syscall() arguments
Elliott Hughes [Tue, 2 Sep 2014 20:53:30 +0000 (20:53 +0000)]
Merge "MIPS64 syscall() arguments"
Dmitriy Ivanov [Tue, 2 Sep 2014 19:53:32 +0000 (19:53 +0000)]
am
a1d14f62: am
86f594b1: Merge "Encapsulate soinfo_link_image and soinfo_relocate"
* commit '
a1d14f62f6efb78dbb601c0c2be79a036da05854':
Encapsulate soinfo_link_image and soinfo_relocate
Dmitriy Ivanov [Tue, 2 Sep 2014 19:45:29 +0000 (19:45 +0000)]
am
86f594b1: Merge "Encapsulate soinfo_link_image and soinfo_relocate"
* commit '
86f594b19bc51ffe87bfacb6b42687af94c3c648':
Encapsulate soinfo_link_image and soinfo_relocate
Chris Dearman [Wed, 20 Aug 2014 23:39:47 +0000 (16:39 -0700)]
MIPS64 syscall() arguments
The seventh argument for syscall is passed in a register, not on the stack
Change-Id: Idb69fac77d1f710cff5a3ab4ae1259feb61ae69d
Dmitriy Ivanov [Tue, 2 Sep 2014 19:25:08 +0000 (19:25 +0000)]
Merge "Encapsulate soinfo_link_image and soinfo_relocate"
Dmitriy Ivanov [Tue, 2 Sep 2014 18:47:23 +0000 (11:47 -0700)]
Encapsulate soinfo_link_image and soinfo_relocate
Also get rid of needed[] array for these functions
Change-Id: I8d12887dbec0724309bb171e6bbd9b9ceb32cc70
Elliott Hughes [Tue, 2 Sep 2014 18:42:28 +0000 (18:42 +0000)]
am
a5d70a4b: am
4625dd75: Merge "Upgrade bionic to tzdata2014g."
* commit '
a5d70a4b15c3c6a7eddd2a4593ad28fa8846f383':
Upgrade bionic to tzdata2014g.
Hans Boehm [Thu, 28 Aug 2014 22:21:32 +0000 (15:21 -0700)]
Make stdatomic.h work with gcc4.6 host compiler
This is needed to make L work correctly, and bionic tests pass
again, after applying the equivalent of
commit
00aaea364501b3b0abe58dae461136159df1e356 there.
It makes the preexisting code that uses __sync implementations
much more useful, although we should no longer be exercising that
code in AOSP.
Specifically fixes:
We were invoking __has_extension and __has_builtin for GCC compilations.
They're clang specific. Restructured the tests.
The __sync implementation was not defining the LOCK_FREE macros.
ATOMIC_VAR_INIT was using named field initializations. These are a
C, not C++, feature, that is not supported by g++ 4.6.
The stdatomic bionic test still failed with 4.6 and glibc with our
questionable LOCK_FREE macro implementation. Don't run that piece
with 4.6.
In L, this is a prerequisite for fixing:
Bug:
16880454
Bug:
16513433
Change-Id: I9b61e42307f96a114dce7552b6ead4ad1c544eab
(cherry picked from commit
32429606bf696d3b2ca555f132a0d60c566d0bd0)
Elliott Hughes [Tue, 2 Sep 2014 16:44:33 +0000 (09:44 -0700)]
Upgrade bionic to tzdata2014g.
From the release notes:
Changes affecting future time stamps
Turks & Caicos is switching from US eastern time to UTC-4 year-round,
modeled as a switch from EST/EDT to AST on 2014-11-02 at 02:00.
Changes affecting past time stamps
Time in Russia or the USSR before 1926 or so has been corrected by
a few seconds in the following zones: Asia/Irkutsk,
Asia/Krasnoyarsk, Asia/Omsk, Asia/Samarkand, Asia/Tbilisi,
Asia/Vladivostok, Asia/Yakutsk, Europe/Riga, Europe/Samara. For
Asia/Yekaterinburg the correction is a few minutes. (Thanks to
Vladimir Karpinsky.)
The Portuguese decree of 1911-05-26 took effect on 1912-01-01.
This affects 1911 time stamps in Africa/Bissau, Africa/Luanda,
Atlantic/Azores, and Atlantic/Madeira. Also, Lisbon's pre-1912
GMT offset was -0:36:45 (rounded from -0:36:44.68), not -0:36:32.
(Thanks to Stephen Colebourne for pointing to the decree.)
Asia/Dhaka ended DST on 2009-12-31 at 24:00, not 23:59.
A new file 'backzone' contains data which may appeal to
connoisseurs of old time stamps, although it is out of scope for
the tz database, is often poorly sourced, and contains some data
that is known to be incorrect. The new file is not recommended
for ordinary use and its entries are not installed by default.
(Thanks to Lester Caine for the high-quality Jersey, Guernsey, and
Isle of Man entries.)
Some more zones have been turned into links, when they differed
from existing zones only for older time stamps. As usual,
these changes affect UTC offsets in pre-1970 time stamps only.
Their old contents have been moved to the 'backzone' file.
The affected zones are: Africa/Bangui, Africa/Brazzaville,
Africa/Douala, Africa/Kinshasa, Africa/Libreville, Africa/Luanda,
Africa/Malabo, Africa/Niamey, and Africa/Porto-Novo.
Bug:
17277574
(cherry picked from commit
9685c30a2375635f7410e60eff2f0559f7e84df6)
Change-Id: I6120be3a0ec76af2d07ca6f9ea6f83d81d215803
Elliott Hughes [Tue, 2 Sep 2014 18:29:15 +0000 (18:29 +0000)]
am
4625dd75: Merge "Upgrade bionic to tzdata2014g."
* commit '
4625dd751e5f7beb0a9b8ec6a768fc7a2c36367a':
Upgrade bionic to tzdata2014g.
Dmitriy Ivanov [Tue, 2 Sep 2014 17:57:20 +0000 (17:57 +0000)]
am
23fa71f7: am
e057b9fc: Merge "Introduce size-based r/w allocators"
* commit '
23fa71f7ca7096a25fd0d603061c861e410eb817':
Introduce size-based r/w allocators
Elliott Hughes [Tue, 2 Sep 2014 17:57:10 +0000 (17:57 +0000)]
Merge "Upgrade bionic to tzdata2014g."
Dmitriy Ivanov [Tue, 2 Sep 2014 17:57:07 +0000 (17:57 +0000)]
am
80ecaf33: am
4cafa3ce: Merge "Implement LinkedList::visit()"
* commit '
80ecaf331e16530179f91db565a8862a8a55f3b1':
Implement LinkedList::visit()
Dmitriy Ivanov [Tue, 2 Sep 2014 17:39:37 +0000 (17:39 +0000)]
am
e47b9949: am
5120bcf9: Merge "Look into ld_preloads before current library"
* commit '
e47b994975e8d21c517082914ab3c72afd5cee55':
Look into ld_preloads before current library
Dmitriy Ivanov [Tue, 2 Sep 2014 17:39:36 +0000 (17:39 +0000)]
am
e4c4311f: resolved conflicts for merge of
c191a8ad to lmp-dev-plus-aosp
* commit '
e4c4311f4402d8f470b91500acf140baa7c4aa47':
Look into ld_preloads before current library
Dmitriy Ivanov [Tue, 2 Sep 2014 17:39:36 +0000 (17:39 +0000)]
am
a20e37f2: am
11387985: Merge "Erase elements in LinkedList::remove_if"
* commit '
a20e37f291957749091ee3a4f30b35a8d4d5a3f3':
Erase elements in LinkedList::remove_if
Dmitriy Ivanov [Tue, 2 Sep 2014 17:35:37 +0000 (17:35 +0000)]
am
e057b9fc: Merge "Introduce size-based r/w allocators"
* commit '
e057b9fc82e1674198738ff2fdd4eb70c645bf9e':
Introduce size-based r/w allocators
Elliott Hughes [Tue, 2 Sep 2014 17:34:14 +0000 (17:34 +0000)]
am
1a96db3e: resolved conflicts for merge of
b2eb09a9 to lmp-dev-plus-aosp
* commit '
1a96db3e8ea0b2a488a068c6f46f7e7ca2e5fc96':
Use __GNUC_PREREQ rather than __GNUC_PREREQ__ to match glibc.
Hans Boehm [Tue, 2 Sep 2014 17:33:33 +0000 (17:33 +0000)]
am
94ea04c5: am
e505cc66: Merge "Make stdatomic.h work with gcc4.6 host compiler"
* commit '
94ea04c50ac3ca59245999bfe302066e8b5c1c84':
Make stdatomic.h work with gcc4.6 host compiler
Hans Boehm [Tue, 26 Aug 2014 22:58:15 +0000 (15:58 -0700)]
Undefine _Atomic before redefining
Stdatomic.h was potentially redefining _Atomic, in spite of a
prior definition by <atomic>. This could cause g++ builds that
included <stdatomic.h> with an available <atomic> header to break.
A functional stdatomic.h is a prerequisite for fixing the
following bugs. This is the middle of 3 AOSP updates to
bionics stdatomic.h that are needded to get there.
Bug:
16880454
Bug:
16513433
Change-Id: I562c7115118c0587d594d4d5b62d25101e47bfd8
(cherry picked from commit
3e4a0099a179d7acee63d78c8fc4c3cc7b0bae42)
Hans Boehm [Tue, 19 Aug 2014 23:14:01 +0000 (16:14 -0700)]
Fix, generalize stdatomic.h; improve test.
We seem to use this stdatomic.h sometimes, and slightly different prebuilts
at other times, making them all difficult to test, and making it unclear
which one we're testing. This generalizes the bionic header so that it
can be used directly as the prebuilt header as well. So long as they
don't diverge again, that should somewhat improve test coverage.
Use the correct builtin for atomic_is_lock_free.
Fix atomic_flag_init.
Turn on atomic tests even with __GLIBC__, since they now appear to pass.
Include uchar.h in stdatomic.h where needed.
Add a basic memory ordering test.
Fix bit-rotted comments in bionic tests makefile.
Prerequisite for fixing b/
16880454 and
Bug:
16513433
Change-Id: If6a14c1075b379395ba5d93357d56025c0ffab68
(cherry picked from commit
00aaea364501b3b0abe58dae461136159df1e356)
Dmitriy Ivanov [Tue, 2 Sep 2014 17:21:51 +0000 (17:21 +0000)]
Merge "Introduce size-based r/w allocators"
Dmitriy Ivanov [Tue, 2 Sep 2014 17:15:38 +0000 (17:15 +0000)]
am
4cafa3ce: Merge "Implement LinkedList::visit()"
* commit '
4cafa3ce808419325eefbb8013d21a919e2aabda':
Implement LinkedList::visit()
Dmitriy Ivanov [Tue, 2 Sep 2014 16:54:14 +0000 (16:54 +0000)]
Merge "Implement LinkedList::visit()"
Elliott Hughes [Tue, 2 Sep 2014 16:44:33 +0000 (09:44 -0700)]
Upgrade bionic to tzdata2014g.
From the release notes:
Changes affecting future time stamps
Turks & Caicos is switching from US eastern time to UTC-4 year-round,
modeled as a switch from EST/EDT to AST on 2014-11-02 at 02:00.
Changes affecting past time stamps
Time in Russia or the USSR before 1926 or so has been corrected by
a few seconds in the following zones: Asia/Irkutsk,
Asia/Krasnoyarsk, Asia/Omsk, Asia/Samarkand, Asia/Tbilisi,
Asia/Vladivostok, Asia/Yakutsk, Europe/Riga, Europe/Samara. For
Asia/Yekaterinburg the correction is a few minutes. (Thanks to
Vladimir Karpinsky.)
The Portuguese decree of 1911-05-26 took effect on 1912-01-01.
This affects 1911 time stamps in Africa/Bissau, Africa/Luanda,
Atlantic/Azores, and Atlantic/Madeira. Also, Lisbon's pre-1912
GMT offset was -0:36:45 (rounded from -0:36:44.68), not -0:36:32.
(Thanks to Stephen Colebourne for pointing to the decree.)
Asia/Dhaka ended DST on 2009-12-31 at 24:00, not 23:59.
A new file 'backzone' contains data which may appeal to
connoisseurs of old time stamps, although it is out of scope for
the tz database, is often poorly sourced, and contains some data
that is known to be incorrect. The new file is not recommended
for ordinary use and its entries are not installed by default.
(Thanks to Lester Caine for the high-quality Jersey, Guernsey, and
Isle of Man entries.)
Some more zones have been turned into links, when they differed
from existing zones only for older time stamps. As usual,
these changes affect UTC offsets in pre-1970 time stamps only.
Their old contents have been moved to the 'backzone' file.
The affected zones are: Africa/Bangui, Africa/Brazzaville,
Africa/Douala, Africa/Kinshasa, Africa/Libreville, Africa/Luanda,
Africa/Malabo, Africa/Niamey, and Africa/Porto-Novo.
Bug:
17277574
Change-Id: Idff4a68e927d49bef1e787af534e1b23b5b8a7fb
Dmitriy Ivanov [Tue, 2 Sep 2014 16:45:40 +0000 (09:45 -0700)]
Implement LinkedList::visit()
Change-Id: Ibd9d133dddf1f2e6e65660e3cd2dacafcc0c84d9
Dmitriy Ivanov [Mon, 1 Sep 2014 23:15:52 +0000 (16:15 -0700)]
Introduce size-based r/w allocators
Change-Id: I75165fc392e5380124039e6db49b0f559c8a518e
Dmitriy Ivanov [Mon, 1 Sep 2014 21:36:47 +0000 (21:36 +0000)]
am
5120bcf9: Merge "Look into ld_preloads before current library"
* commit '
5120bcf9f11951bffd8ac595c2b70252ed4a4958':
Look into ld_preloads before current library
Dmitriy Ivanov [Mon, 1 Sep 2014 21:34:15 +0000 (14:34 -0700)]
resolved conflicts for merge of
c191a8ad to lmp-dev-plus-aosp
Change-Id: I24dcf9701ebe3344796f757a596754cbefbf358a
Dmitriy Ivanov [Mon, 1 Sep 2014 21:24:50 +0000 (21:24 +0000)]
am
11387985: Merge "Erase elements in LinkedList::remove_if"
* commit '
11387985d27f7d9794963779c69dcf0056bac43c':
Erase elements in LinkedList::remove_if
Dmitriy Ivanov [Mon, 1 Sep 2014 21:16:40 +0000 (21:16 +0000)]
Merge "Look into ld_preloads before current library"
Dmitriy Ivanov [Fri, 29 Aug 2014 17:15:25 +0000 (10:15 -0700)]
Look into ld_preloads before current library
Change lookup order during relocation so that
ld_preloads always precede caller (unless caller
is main executable).
Asan needs this change in order to intercept libc->libc
calls.
Bug:
15432753
(cherry picked from commit
05e190c093ad5b04691ed87100a711ef91f380b0)
Change-Id: I5bfb58e18015b1ec5b77842dbb37fb122fa1fd1a
Dmitriy Ivanov [Mon, 1 Sep 2014 21:08:54 +0000 (21:08 +0000)]
Merge "Look into ld_preloads before current library" into lmp-dev
Dmitriy Ivanov [Mon, 1 Sep 2014 21:06:32 +0000 (21:06 +0000)]
Merge "Erase elements in LinkedList::remove_if"
Elliott Hughes [Mon, 1 Sep 2014 11:25:55 +0000 (11:25 +0000)]
am
e21a6242: am
bbe06e0d: Merge "Use __GNUC_PREREQ rather than __GNUC_PREREQ__ to match glibc."
* commit '
e21a624269b198e82c1c9a102d36f1fa21b44f6b':
Use __GNUC_PREREQ rather than __GNUC_PREREQ__ to match glibc.
Dmitriy Ivanov [Mon, 1 Sep 2014 11:25:50 +0000 (11:25 +0000)]
am
e6f46bfb: am
83b637fa: Merge "Replace NULL with nullptr"
* commit '
e6f46bfb90123757aaa36a3be79b875e18a95c46':
Replace NULL with nullptr
Elliott Hughes [Sun, 31 Aug 2014 05:30:48 +0000 (22:30 -0700)]
resolved conflicts for merge of
b2eb09a9 to lmp-dev-plus-aosp
Change-Id: I0208958d78d6d7bc8c41568aa9abee15605b951e
Hans Boehm [Sat, 30 Aug 2014 01:25:10 +0000 (01:25 +0000)]
am
e505cc66: Merge "Make stdatomic.h work with gcc4.6 host compiler"
* commit '
e505cc66a6e03f4ba460de3500f8b272421482c1':
Make stdatomic.h work with gcc4.6 host compiler
Hans Boehm [Sat, 30 Aug 2014 00:49:51 +0000 (00:49 +0000)]
Merge "Make stdatomic.h work with gcc4.6 host compiler"
Dmitriy Ivanov [Fri, 29 Aug 2014 21:01:48 +0000 (14:01 -0700)]
Erase elements in LinkedList::remove_if
Change-Id: I5119a78c73ffe780a81c53ab5ff0266d5c82d319
Hans Boehm [Thu, 28 Aug 2014 22:21:32 +0000 (15:21 -0700)]
Make stdatomic.h work with gcc4.6 host compiler
This is needed to make L work correctly, and bionic tests pass
again, after applying the equivalent of
commit
00aaea364501b3b0abe58dae461136159df1e356 there.
It makes the preexisting code that uses __sync implementations
much more useful, although we should no longer be exercising that
code in AOSP.
Specifically fixes:
We were invoking __has_extension and __has_builtin for GCC compilations.
They're clang specific. Restructured the tests.
The __sync implementation was not defining the LOCK_FREE macros.
ATOMIC_VAR_INIT was using named field initializations. These are a
C, not C++, feature, that is not supported by g++ 4.6.
The stdatomic bionic test still failed with 4.6 and glibc with our
questionable LOCK_FREE macro implementation. Don't run that piece
with 4.6.
In L, this is a prerequisite for fixing:
Bug:
16880454
Bug:
16513433
Change-Id: I9b61e42307f96a114dce7552b6ead4ad1c544eab
Elliott Hughes [Fri, 29 Aug 2014 23:30:14 +0000 (23:30 +0000)]
am
bbe06e0d: Merge "Use __GNUC_PREREQ rather than __GNUC_PREREQ__ to match glibc."
* commit '
bbe06e0da1742e9bdc52d3246ffa9f2ab3ce999a':
Use __GNUC_PREREQ rather than __GNUC_PREREQ__ to match glibc.
Elliott Hughes [Fri, 29 Aug 2014 22:54:11 +0000 (15:54 -0700)]
Use __GNUC_PREREQ rather than __GNUC_PREREQ__ to match glibc.
Bug:
16874785
(cherry picked from commit
e0c56efddf55ad40cb35b2c22e1dd9b4b50df159)
Change-Id: I9c922ba019f648766fc399d1c4e35e789e25acd4
Elliott Hughes [Fri, 29 Aug 2014 23:08:00 +0000 (23:08 +0000)]
Merge "Use __GNUC_PREREQ rather than __GNUC_PREREQ__ to match glibc."
Elliott Hughes [Fri, 29 Aug 2014 22:54:11 +0000 (15:54 -0700)]
Use __GNUC_PREREQ rather than __GNUC_PREREQ__ to match glibc.
Bug:
16874785
Change-Id: I8512f8be3fd149d8720c5c3b4657bedd5ce2b1d1
Dmitriy Ivanov [Fri, 29 Aug 2014 22:51:53 +0000 (22:51 +0000)]
am
83b637fa: Merge "Replace NULL with nullptr"
* commit '
83b637fa28e072aa73691b5ddc588293f06cb54b':
Replace NULL with nullptr
Dmitriy Ivanov [Fri, 29 Aug 2014 22:30:07 +0000 (22:30 +0000)]
Merge "Replace NULL with nullptr"
Dmitriy Ivanov [Fri, 29 Aug 2014 19:02:36 +0000 (12:02 -0700)]
Replace NULL with nullptr
Change-Id: Iad50be617d318ca98883b843229c960ad5b9afa9
Elliott Hughes [Fri, 29 Aug 2014 18:49:21 +0000 (18:49 +0000)]
am
72dc86ec: am
1f39afc8: Merge "The host prebuilt glibc is 2.11, so remove workarounds for 2.9."
* commit '
72dc86ec5f8927d7be03b110a61aba45e94b4cfa':
The host prebuilt glibc is 2.11, so remove workarounds for 2.9.
Dmitriy Ivanov [Fri, 29 Aug 2014 17:15:25 +0000 (10:15 -0700)]
Look into ld_preloads before current library
Change lookup order during relocation so that
ld_preloads always precede caller (unless caller
is main executable).
Asan needs this change in order to intercept libc->libc
calls.
Bug:
15432753
Change-Id: If69aa16efe59aa35bb30e96feb83d08f1efbec86
Elliott Hughes [Fri, 29 Aug 2014 18:30:59 +0000 (18:30 +0000)]
am
1f39afc8: Merge "The host prebuilt glibc is 2.11, so remove workarounds for 2.9."
* commit '
1f39afc8d4cf402a8aa46d6cb121c62d289922d3':
The host prebuilt glibc is 2.11, so remove workarounds for 2.9.
Elliott Hughes [Fri, 29 Aug 2014 18:12:36 +0000 (18:12 +0000)]
Merge "The host prebuilt glibc is 2.11, so remove workarounds for 2.9."
Chih-Hung Hsieh [Fri, 29 Aug 2014 11:56:38 +0000 (11:56 +0000)]
am
46623c1c: am
cc4259ed: Merge "Ignore all __weak_alias in OpenBSD libC."
* commit '
46623c1cc7045d01ad950a4d2cad2a2722efc5ce':
Ignore all __weak_alias in OpenBSD libC.
Elliott Hughes [Fri, 29 Aug 2014 11:56:38 +0000 (11:56 +0000)]
am
cd6657f9: am
29f06943: Merge "Add GNU-compatible strerror_r."
* commit '
cd6657f9eacb8dff723be48ffff72e153b4c82c6':
Add GNU-compatible strerror_r.
Chih-Hung Hsieh [Fri, 29 Aug 2014 11:39:56 +0000 (11:39 +0000)]
am
cc4259ed: Merge "Ignore all __weak_alias in OpenBSD libC."
* commit '
cc4259ed9254ae66f63cacc3ad50963c4058eb1c':
Ignore all __weak_alias in OpenBSD libC.
Elliott Hughes [Fri, 29 Aug 2014 11:39:55 +0000 (11:39 +0000)]
am
29f06943: Merge "Add GNU-compatible strerror_r."
* commit '
29f06943a19ef2271a08f4223f597a3383f0d9c0':
Add GNU-compatible strerror_r.
Chih-Hung Hsieh [Fri, 29 Aug 2014 03:10:43 +0000 (03:10 +0000)]
Merge "Ignore all __weak_alias in OpenBSD libC."
Elliott Hughes [Fri, 29 Aug 2014 02:28:35 +0000 (19:28 -0700)]
The host prebuilt glibc is 2.11, so remove workarounds for 2.9.
Change-Id: I1072fcebc8b3018580a9d069fe6eca9c4e74e865
Elliott Hughes [Fri, 29 Aug 2014 02:26:33 +0000 (02:26 +0000)]
Merge "Add GNU-compatible strerror_r."
Elliott Hughes [Tue, 19 Aug 2014 00:28:32 +0000 (17:28 -0700)]
Add GNU-compatible strerror_r.
We already had the POSIX strerror_r, but some third-party code defines
_GNU_SOURCE and expects to get the GNU strerror_r instead.
This exposed a bug in the libc internal logging functions where unlike
their standard brethren they wouldn't return the number of bytes they'd
have liked to have written.
Bug:
16243479
Change-Id: I1745752ccbdc569646d34f5071f6df2be066d5f4
Chih-Hung Hsieh [Thu, 28 Aug 2014 18:47:48 +0000 (11:47 -0700)]
Ignore all __weak_alias in OpenBSD libC.
GCC assembler allows xyz to be redeclared as weak,
by __weak_alias(xyz, _xyz), while _xyz is undefined.
Clang does not like that but silently generates no code.
It will reject its own .s file if the assembly code is saved first.
Since we have no reason to define xyz or _xyz as weak symbol now,
and _xyz is a macro to xyz, we simplify libC to have only
xyz defined as global.
BUG:
17186746
Change-Id: I24b154425838683cae69248cc750c59e26fd5467
Elliott Hughes [Thu, 28 Aug 2014 04:16:11 +0000 (04:16 +0000)]
am
eceb417d: am
67f1f3b1: Have pthread_attr_getstack for the main thread report RLIMIT_STACK...
* commit '
eceb417d2817aace3207943cc90b81026d505f80':
Have pthread_attr_getstack for the main thread report RLIMIT_STACK...
Elliott Hughes [Thu, 28 Aug 2014 04:11:48 +0000 (04:11 +0000)]
am
0019c7b5: resolved conflicts for merge of
a0eeb0b6 to lmp-dev-plus-aosp
* commit '
0019c7b5a05a7c79e3ab9b72cae9bcdf8d22491e':
Fix pthread_getattr_np for the main thread.
Elliott Hughes [Thu, 28 Aug 2014 03:37:22 +0000 (03:37 +0000)]
am
67f1f3b1: Have pthread_attr_getstack for the main thread report RLIMIT_STACK...
* commit '
67f1f3b171ecd5f68f51465bbe4b8c8440bb6b2e':
Have pthread_attr_getstack for the main thread report RLIMIT_STACK...
Elliott Hughes [Thu, 28 Aug 2014 03:03:04 +0000 (20:03 -0700)]
resolved conflicts for merge of
a0eeb0b6 to lmp-dev-plus-aosp
Change-Id: I84193689c0d6a9ee70b8da3c509694eb6d747d4a
Elliott Hughes [Thu, 28 Aug 2014 00:13:16 +0000 (00:13 +0000)]
am
9560aaba: am
f4e721dd: Merge "Have pthread_attr_getstack for the main thread report RLIMIT_STACK..."
* commit '
9560aaba8ff6c667495de590a097709cb95bba24':
Have pthread_attr_getstack for the main thread report RLIMIT_STACK...
Elliott Hughes [Thu, 28 Aug 2014 00:00:07 +0000 (00:00 +0000)]
am
f4e721dd: Merge "Have pthread_attr_getstack for the main thread report RLIMIT_STACK..."
* commit '
f4e721dd519db89c504c8944763811a3df956b32':
Have pthread_attr_getstack for the main thread report RLIMIT_STACK...
Christopher Ferris [Wed, 27 Aug 2014 23:53:09 +0000 (23:53 +0000)]
am
5f6bab1a: am
af9da4a3: Merge "Replace snprintf calls in linker."
* commit '
5f6bab1ac2212a23d8afd96dceb51b793b05dd2f':
Replace snprintf calls in linker.
Elliott Hughes [Wed, 27 Aug 2014 22:32:01 +0000 (15:32 -0700)]
Have pthread_attr_getstack for the main thread report RLIMIT_STACK...
...rather than just what's already mapped in. This seems somewhat
contrary to POSIX's "All pages within the stack described by stackaddr
and stacksize shall be both readable and writable by the thread", but
it's what glibc does.
Bug:
17111575
(cherry picked from commit
9e4ffa7032eaab308876b8e3da86b05c3c613878)
Change-Id: I73f219a569917b2e4546c09436d7ef5231facc07
Elliott Hughes [Wed, 27 Aug 2014 23:49:56 +0000 (23:49 +0000)]
Merge "Fix pthread_getattr_np for the main thread." into lmp-dev