Commit graph

18248 commits

Author SHA1 Message Date
Erik Kline
2d1209dfa1 Merge \\"Add /vendor/xbin to root\\'s path.\\" am: 74669e99ce
am: a258d220b1

Change-Id: If00b5c21d8a68fa89d0e707ac60434a7054a6fa2
2016-06-08 01:24:58 +00:00
Erik Kline
a258d220b1 Merge \"Add /vendor/xbin to root\'s path.\"
am: 74669e99ce

Change-Id: Ia5bccd411cf19351b26b1ccbb78fc65443b0d33d
2016-06-08 01:22:22 +00:00
Treehugger Robot
74669e99ce Merge "Add /vendor/xbin to root's path." 2016-06-08 01:06:49 +00:00
Elliott Hughes
f17dd0c005 Merge "Preliminary cleanup of <sys/cdefs.h>." am: 30ad0dd6ad
am: 2278f77e18

* commit '2278f77e185c15f703c5513ae9ce6962d487f693':
  Preliminary cleanup of <sys/cdefs.h>.

Change-Id: I52dacdc75b3b172c83a3c9897bbc3af0fb9a2298
2016-06-07 20:27:35 +00:00
Elliott Hughes
2278f77e18 Merge "Preliminary cleanup of <sys/cdefs.h>."
am: 30ad0dd6ad

* commit '30ad0dd6ad90131cdcc71b8b9c33a17598a25671':
  Preliminary cleanup of <sys/cdefs.h>.

Change-Id: Ibfa1773b59ad937b663886df849c0a06476ce454
2016-06-07 20:25:11 +00:00
Elliott Hughes
30ad0dd6ad Merge "Preliminary cleanup of <sys/cdefs.h>." 2016-06-07 20:16:26 +00:00
Elliott Hughes
f4840507b5 Preliminary cleanup of <sys/cdefs.h>.
We don't support anything other than Clang and GCC, and we don't support
GCC earlier than 4.9.

Move the various synonyms for __attribute__(__whatever__) together.

Fix a __STDC__VERSION__ (for __STDC_VERSION__) typo.

Drop support for BSD _ANSI_SOURCE and _C99_SOURCE; there's enough confusing
nonsense here already, and plenty of other ways to ask for obsolete standards.

There are plenty more problems here -- what I really want to do is rationalize
our treatment of __STDC_VERSION__ -- but let's get some of this easy stuff
out of the way first.

Bug: https://code.google.com/p/android/issues/detail?id=194631
Change-Id: I7526b9770fdc01f8a4667781b65e2fb08287b20b
2016-06-06 17:35:53 -07:00
Christopher Ferris
443957cd39 Merge "Fix infinite loop if semaphore test is not run." am: d80d42740d
am: d969bb9603

* commit 'd969bb9603fd70edfb801a0433d1538bfa078222':
  Fix infinite loop if semaphore test is not run.

Change-Id: Ifd58caa81fe23f0d1d8c143962adc041555771e6
2016-06-06 22:39:50 +00:00
Christopher Ferris
d969bb9603 Merge "Fix infinite loop if semaphore test is not run."
am: d80d42740d

* commit 'd80d42740d9d2ad532c8445fd4835186c252e6e6':
  Fix infinite loop if semaphore test is not run.

Change-Id: If34ff256848d37a1768b726473f9a0550d444d9a
2016-06-06 22:36:21 +00:00
Treehugger Robot
d80d42740d Merge "Fix infinite loop if semaphore test is not run." 2016-06-06 22:26:55 +00:00
Christopher Ferris
1783941f23 Fix infinite loop if semaphore test is not run.
When using the --benchmark_filter option, all of the test objects
get created, but not all are run. Previously, if this test didn't run
it would get into an infinite loop waiting for the test to complete.
This change only waits for the test to complete if it was actually
executed.

Change-Id: I5151a0b4b3d5349b978e716ec4a02ebd8b4eae00
2016-06-06 14:13:17 -07:00
Elliott Hughes
240e8f82c1 Merge "Just use libstdc++ for the cxa stuff inside bionic." am: 901cc14822
am: c1a361a313

* commit 'c1a361a31350777bce06c0f409c74aaf237748fe':
  Just use libstdc++ for the cxa stuff inside bionic.

Change-Id: Id5ab9ada875ed995a4616bc8b5f580017c1bd18a
2016-06-06 18:18:08 +00:00
Elliott Hughes
c1a361a313 Merge "Just use libstdc++ for the cxa stuff inside bionic."
am: 901cc14822

* commit '901cc14822e431185fbe5075ef4f06aa4fba58cf':
  Just use libstdc++ for the cxa stuff inside bionic.

Change-Id: I5d256203ebd63f380b572559cbe2d898f5ad3c55
2016-06-06 18:11:06 +00:00
Treehugger Robot
901cc14822 Merge "Just use libstdc++ for the cxa stuff inside bionic." 2016-06-06 18:04:54 +00:00
Josh Gao
285f38d474 Merge changes I32e726c7,I1dc9a708,I09cc335b,Ifb8a66ab,I0e2c25bc, ... am: c5799dd13c
am: 56a81c096d

* commit '56a81c096d85dd4245ebe4be13764cb825ee7cf4':
  versioner: whitelist atexit, turn on symbol checking by default.
  versioner: add missing test.
  versioner: fix false positive with functions only available as inlines.
  versioner: improve error output slightly.
  versioner: merge stdout and stderr in the test runner.
  versioner: clean up tests, test runner.
  versioner: ignore functions that are __INTRODUCED_IN_FUTURE.
  versioner: autodetect paths when no specified.
  versioner: improve usage messages.
  Remove __cachectl.

Change-Id: Iab0de231472e06fe5146618c3c6b5be3dc9c203b
2016-06-04 06:15:57 +00:00
Josh Gao
56a81c096d Merge changes I32e726c7,I1dc9a708,I09cc335b,Ifb8a66ab,I0e2c25bc, ...
am: c5799dd13c

* commit 'c5799dd13c58aae84cffd5e4b4a379556634bd71':
  versioner: whitelist atexit, turn on symbol checking by default.
  versioner: add missing test.
  versioner: fix false positive with functions only available as inlines.
  versioner: improve error output slightly.
  versioner: merge stdout and stderr in the test runner.
  versioner: clean up tests, test runner.
  versioner: ignore functions that are __INTRODUCED_IN_FUTURE.
  versioner: autodetect paths when no specified.
  versioner: improve usage messages.
  Remove __cachectl.

Change-Id: I8d24a4ac071ee29004a022546d1225794b6f2940
2016-06-04 06:12:32 +00:00
Josh Gao
c5799dd13c Merge changes I32e726c7,I1dc9a708,I09cc335b,Ifb8a66ab,I0e2c25bc, ...
* changes:
  versioner: whitelist atexit, turn on symbol checking by default.
  versioner: add missing test.
  versioner: fix false positive with functions only available as inlines.
  versioner: improve error output slightly.
  versioner: merge stdout and stderr in the test runner.
  versioner: clean up tests, test runner.
  versioner: ignore functions that are __INTRODUCED_IN_FUTURE.
  versioner: autodetect paths when no specified.
  versioner: improve usage messages.
  Remove __cachectl.
2016-06-04 06:06:02 +00:00
Josh Gao
d8c77257ea versioner: whitelist atexit, turn on symbol checking by default.
Change-Id: I32e726c74ee618ace3a4329d46408a42732a8d9d
2016-06-03 15:01:19 -07:00
Josh Gao
4af829acb7 versioner: add missing test.
Change-Id: I1dc9a708b53dbb46af9e4b8ab69bf8ed46ab045f
2016-06-03 15:01:19 -07:00
Josh Gao
958f3b31c4 versioner: fix false positive with functions only available as inlines.
Change-Id: I09cc335b4006c6ceafcbd1bec9e50161f8262942
2016-06-03 15:01:19 -07:00
Josh Gao
173e7c0753 versioner: improve error output slightly.
Print [introduced = 9, deprecated = 10, obsoleted = 11] instead of
[9,10,11].

Change-Id: Ifb8a66abbcec92aa13086d220af7ee6fa17b0897
2016-06-03 15:01:19 -07:00
Josh Gao
658dbd920d versioner: merge stdout and stderr in the test runner.
Some of the error messages emitted by versioner (the ones where it was
invoked incorrectly) go to stderr, which meant that the test runner
ignored them. Merge stdout and stderr, and switch from testing for
exact equality to endswith, because of the compilation errors test.

Change-Id: I0e2c25bcc9dea4c12ea82a6a05b29e561a61a902
2016-06-03 15:01:18 -07:00
Josh Gao
80d909bbfb versioner: clean up tests, test runner.
Git doesn't track empty directories, so most of the tests would fail on
a fresh checkout because of dependencies/common being missing. Remove
the use of dependencies from all of the non-dependency related tests.

Change-Id: I09cc5765aae1576914c1c5d7dfa3fb666eab4a3f
2016-06-03 15:01:18 -07:00
Josh Gao
d67dbf003e versioner: ignore functions that are __INTRODUCED_IN_FUTURE.
Bug: http://b/28178111
Change-Id: I8026181e08ed8f2d59b31a37adcf8b469fb6bdaf
2016-06-03 15:01:18 -07:00
Josh Gao
9b5af7ad5e versioner: autodetect paths when no specified.
Search for the header/dependency/platform directories in a hard-coded
path relative to $ANDROID_BUILD_TOP when they're not specified.

Change-Id: I476385cfc0247e3b2009348ec37c1810a0e9a7f7
2016-06-03 15:01:18 -07:00
Josh Gao
62aaf8f8fe versioner: improve usage messages.
Don't spew all of usage when called improperly, and add a -h option
that exits cleanly.

Change-Id: I1a4517edce75afe0f9a80bc8d6c81353d6c12e99
2016-06-03 15:01:18 -07:00
Josh Gao
99a84c8316 Remove __cachectl.
bionic doesn't have an implementation for this function, but neither
does the kernel. cachectl has existed in the kernel as a stub that
returns ENOSYS for over a decade.

Bug: http://b/28178111
Change-Id: Id35f85fd143c5ea0d45d04b1021893cf5c0c749d
2016-06-03 15:01:18 -07:00
Josh Gao
c7336988bd Merge "Fix __errordecl on clang." am: f21ca653b7
am: 8e8f0f26a3

* commit '8e8f0f26a3aec7e8ae7f33a4d97c56328e150703':
  Fix __errordecl on clang.

Change-Id: Icafdc7481f871843f74c66d2271472ca7cb1548b
2016-06-03 19:41:53 +00:00
Josh Gao
8e8f0f26a3 Merge "Fix __errordecl on clang."
am: f21ca653b7

* commit 'f21ca653b7407f22b679ebf2877b7d8c5b719167':
  Fix __errordecl on clang.

Change-Id: I194d3865399a891ec3aaaf21213746d7c65a30e3
2016-06-03 19:38:09 +00:00
Treehugger Robot
f21ca653b7 Merge "Fix __errordecl on clang." 2016-06-03 19:29:12 +00:00
Chih-hung Hsieh
4dc8edb8a7 Merge "Fix misc-macro-parentheses warnings in bionic/tests." am: e7d75a5d43
am: d9bece770c

* commit 'd9bece770c2796697186fbc100df13c1fcb50cec':
  Fix misc-macro-parentheses warnings in bionic/tests.

Change-Id: I2fbbc7fae4d7dcff9e7bd9002617dc8483929c2d
2016-06-03 19:02:20 +00:00
Chih-Hung Hsieh
d9bece770c Merge "Fix misc-macro-parentheses warnings in bionic/tests."
am: e7d75a5d43

* commit 'e7d75a5d43b036171e180c26a3da1072f7c706d9':
  Fix misc-macro-parentheses warnings in bionic/tests.

Change-Id: Ibd4e65fa11d32d79b60eb7df797bfd07ed565dec
2016-06-03 18:54:51 +00:00
Dimitry Ivanov
5e4e7ee984 Merge "Remove __brk" am: c42811e5bc
am: f9d8052575

* commit 'f9d805257557e99e9d3ae84711d260f27f072637':
  Remove __brk

Change-Id: I21909d8b89920e9f239fe7c2c8def5863d05ed30
2016-06-03 18:49:36 +00:00
Chih-hung Hsieh
e7d75a5d43 Merge "Fix misc-macro-parentheses warnings in bionic/tests." 2016-06-03 18:46:42 +00:00
Dimitry Ivanov
f9d8052575 Merge "Remove __brk"
am: c42811e5bc

* commit 'c42811e5bc888bf631eaae2e8788c020c858c509':
  Remove __brk

Change-Id: I3bb207eed89ff5903592501d0d3e6c46fb2fef93
2016-06-03 18:42:31 +00:00
Treehugger Robot
c42811e5bc Merge "Remove __brk" 2016-06-03 18:27:45 +00:00
Josh Gao
8ba4424a41 Fix __errordecl on clang.
__attribute__((__error__)) doesn't exist on clang.

Bug: http://b/28381737
Change-Id: I75f39308ecfd60164811958fa40c9b96c92fd329
2016-06-03 10:36:37 -07:00
Chih-Hung Hsieh
d61ca37d35 Fix misc-macro-parentheses warnings in bionic/tests.
Bug: 28705665
Change-Id: I532205b94e30acbdc97f3f4db0660c9a16a7de89
2016-06-03 10:18:07 -07:00
Dimitry Ivanov
71e783d8a4 Remove __brk
The symbol is unused and deprecated

Bug: http://b/29005114
Change-Id: I5e99c8b029514e8b2405a1eec23ac8941374a8a4
2016-06-03 08:33:51 -07:00
Chih-Hung Hsieh
8da1c73cc4 Merge "Do not return with stack address in global variable." am: a24cc2639f
am: d1b738579f

* commit 'd1b738579f028a6484ba6e175a9add65c185075c':
  Do not return with stack address in global variable.

Change-Id: I63faea54ccf4aadad69ecf3ac6ab250601044441
2016-06-02 23:12:14 +00:00
Chih-Hung Hsieh
d1b738579f Merge "Do not return with stack address in global variable."
am: a24cc2639f

* commit 'a24cc2639f85d0b0978b18493f4f3bceebbc8ed3':
  Do not return with stack address in global variable.

Change-Id: Iaa971070e73cc81690bd853c8de57ca40a4957a2
2016-06-02 23:09:58 +00:00
Treehugger Robot
a24cc2639f Merge "Do not return with stack address in global variable." 2016-06-02 22:57:51 +00:00
Chih-Hung Hsieh
9af13d24b1 Do not return with stack address in global variable.
Clang static analyzer gives warning when address of
local variable 'attr' is saved in a global variable.
This change passes required values down to signal handler
instead of saving local variable address in a signal handler.

Change-Id: I7955939487a5afdf7b1f47eb74a92eb5aa76cfc9
2016-06-02 15:02:25 -07:00
Josh Gao
28caa24974 Merge changes I1bb1925a,Icd638673 am: d23c37bc3f
am: 170e117af1

* commit '170e117af18b5d435adb41bf2ed26193c085e165':
  versioner: introduce.
  Update header versions for NDK platform fixes.

Change-Id: I4829805923c0580f2e8df7fcc3d0f4d21fdcc974
2016-06-02 21:51:27 +00:00
Josh Gao
170e117af1 Merge changes I1bb1925a,Icd638673
am: d23c37bc3f

* commit 'd23c37bc3fafddf9e1859b8521556ce83487ba34':
  versioner: introduce.
  Update header versions for NDK platform fixes.

Change-Id: I6ad5ffe22b0c3b044cb0ffefa131f26aaf762055
2016-06-02 21:49:01 +00:00
Treehugger Robot
d23c37bc3f Merge changes I1bb1925a,Icd638673
* changes:
  versioner: introduce.
  Update header versions for NDK platform fixes.
2016-06-02 21:29:48 +00:00
Josh Gao
bf8a285e64 versioner: introduce.
Add a clang-based tool to inspect header availability attributes and
verify them against the NDK platform definitions.

Bug: http://b/28178111
Change-Id: I1bb1925a620e98cc9606cb5a3360b1224c700bd0
2016-06-02 13:40:36 -07:00
Josh Gao
46b44160e9 Update header versions for NDK platform fixes.
Bug: http://b/28178111
Change-Id: Icd638673b409aa43a91490f77c6b4d79c9ea20d9
2016-06-02 13:40:35 -07:00
Colin Cross
72fbf31302 Merge "Remove deprecated Android.mk files" am: 8428fb03c8
am: 5ec9e21cf3

* commit '5ec9e21cf38f657a6c39139a3153a634328cb816':
  Remove deprecated Android.mk files

Change-Id: I91715713f78f4e75f5c80133dd0e6ee1b555e7e2
2016-06-02 16:40:19 +00:00
Colin Cross
5ec9e21cf3 Merge "Remove deprecated Android.mk files"
am: 8428fb03c8

* commit '8428fb03c8be012640a4f735be8f32073c18ba3f':
  Remove deprecated Android.mk files

Change-Id: Id76d0c6ef366077b5bf37cf432600c687f2069d7
2016-06-02 16:37:47 +00:00