OSDN Git Service

android-x86/bionic.git
8 years agoAdd <sysexits.h>. am: e924d8528c
Elliott Hughes [Thu, 19 Nov 2015 23:10:03 +0000 (23:10 +0000)]
Add <sysexits.h>. am: e924d8528c
am: 17fd7c4da4

* commit '17fd7c4da42523d298f97f715d6073232efce829':

8 years agoAdd <sysexits.h>.
Elliott Hughes [Thu, 19 Nov 2015 23:00:34 +0000 (23:00 +0000)]
Add <sysexits.h>.
am: e924d8528c

* commit 'e924d8528cc566ee5569a42c92e9f698c857d48a':
  Add <sysexits.h>.

8 years agoMerge "Do not depend on host bits to get the right size to write." am: 313632db57...
Junichi Uekawa [Thu, 19 Nov 2015 13:00:11 +0000 (13:00 +0000)]
Merge "Do not depend on host bits to get the right size to write." am: 313632db57 am: 1ab4088062
am: e07796140b

* commit 'e07796140b9d43f54283da2532cca308cefd7edc':
  Do not depend on host bits to get the right size to write.

8 years agoMerge "Do not depend on host bits to get the right size to write." am: 313632db57
Junichi Uekawa [Thu, 19 Nov 2015 12:55:19 +0000 (12:55 +0000)]
Merge "Do not depend on host bits to get the right size to write." am: 313632db57
am: 1ab4088062

* commit '1ab4088062ffdebbb82e5cf1fe9819fb6cc76555':
  Do not depend on host bits to get the right size to write.

8 years agoMerge "Do not depend on host bits to get the right size to write."
Junichi Uekawa [Thu, 19 Nov 2015 12:51:01 +0000 (12:51 +0000)]
Merge "Do not depend on host bits to get the right size to write."
am: 313632db57

* commit '313632db574d101275206ca025d21a5a3cd62150':
  Do not depend on host bits to get the right size to write.

8 years agoMerge "Do not depend on host bits to get the right size to write."
Junichi Uekawa [Thu, 19 Nov 2015 12:44:19 +0000 (12:44 +0000)]
Merge "Do not depend on host bits to get the right size to write."

8 years agoMerge "Implement pthread spin." am: 2c09e5de29 am: f091c1f2f1
Yabin Cui [Thu, 19 Nov 2015 05:49:06 +0000 (05:49 +0000)]
Merge "Implement pthread spin." am: 2c09e5de29 am: f091c1f2f1
am: 5002198b6b

* commit '5002198b6b4fd3ab19b6754b9dce6421a5d98a38':
  Implement pthread spin.

8 years agoMerge branch 'master' of /usr/local/google/game/mirror/googleplex-android_googlesourc...
Yabin Cui [Thu, 19 Nov 2015 05:48:58 +0000 (05:48 +0000)]
Merge branch 'master' of /usr/local/google/game/mirror/googleplex-android_googlesource_com/platform/bionic

8 years agoMerge "Avoid tsan warning about pthread_mutex_destroy." am: ea5bb151af am: 9d4bd6f0ca
Yabin Cui [Thu, 19 Nov 2015 05:48:56 +0000 (05:48 +0000)]
Merge "Avoid tsan warning about pthread_mutex_destroy." am: ea5bb151af am: 9d4bd6f0ca
am: 534a5b7c11

* commit '534a5b7c11c12da3140b0913c6f938b3a60f7064':
  Avoid tsan warning about pthread_mutex_destroy.

8 years agoMerge "Avoid tsan warning about pthread_mutex_destroy." am: ea5bb151af am: 9d4bd6f0ca
Yabin Cui [Thu, 19 Nov 2015 05:48:51 +0000 (05:48 +0000)]
Merge "Avoid tsan warning about pthread_mutex_destroy." am: ea5bb151af am: 9d4bd6f0ca
am: 534a5b7c11

* commit '534a5b7c11c12da3140b0913c6f938b3a60f7064':
  Avoid tsan warning about pthread_mutex_destroy.

8 years agoMerge "Ignore target sdk version for the public namespace" am: 63f0e0db76 am: 3f539a1655
Dimitry Ivanov [Thu, 19 Nov 2015 03:24:43 +0000 (03:24 +0000)]
Merge "Ignore target sdk version for the public namespace" am: 63f0e0db76 am: 3f539a1655
am: a19affbaaa

* commit 'a19affbaaae85080f4107ab5d050351595729a11':
  Ignore target sdk version for the public namespace

8 years agoDo not depend on host bits to get the right size to write.
Junichi Uekawa [Wed, 18 Nov 2015 01:18:59 +0000 (10:18 +0900)]
Do not depend on host bits to get the right size to write.

x86_64 32-bit or 64-bit relocations do not depend on ELF bit size, they
are 32-bit or 64-bit respectively.

Known compiler that emits such code is nacl-clang which emits
R_X86_64_PC32 which should write 32 bits but ended up writing 64 bits.

Change-Id: Ibb6b484c0fea6a7e291362148e8ac749d6674529

8 years agoMerge "Implement pthread spin." am: 2c09e5de29
Yabin Cui [Thu, 19 Nov 2015 02:09:25 +0000 (02:09 +0000)]
Merge "Implement pthread spin." am: 2c09e5de29
am: f091c1f2f1

* commit 'f091c1f2f1cf7f363ba59c08b88f1fb5de05607d':
  Implement pthread spin.

8 years agoMerge "Avoid tsan warning about pthread_mutex_destroy." am: ea5bb151af
Yabin Cui [Thu, 19 Nov 2015 02:09:14 +0000 (02:09 +0000)]
Merge "Avoid tsan warning about pthread_mutex_destroy." am: ea5bb151af
am: 9d4bd6f0ca

* commit '9d4bd6f0caa0d1d7947767a7ea3517c2a764e7e6':
  Avoid tsan warning about pthread_mutex_destroy.

8 years agoMerge "Implement pthread spin."
Yabin Cui [Thu, 19 Nov 2015 02:03:24 +0000 (02:03 +0000)]
Merge "Implement pthread spin."
am: 2c09e5de29

* commit '2c09e5de299ca87a9e68807e2b4af41ba61710f3':
  Implement pthread spin.

8 years agoMerge "Avoid tsan warning about pthread_mutex_destroy."
Yabin Cui [Thu, 19 Nov 2015 02:03:13 +0000 (02:03 +0000)]
Merge "Avoid tsan warning about pthread_mutex_destroy."
am: ea5bb151af

* commit 'ea5bb151af5e1e364968cb1eac70c8a2c13ca7a7':
  Avoid tsan warning about pthread_mutex_destroy.

8 years agoMerge "Implement pthread spin."
Yabin Cui [Thu, 19 Nov 2015 01:55:37 +0000 (01:55 +0000)]
Merge "Implement pthread spin."

8 years agoMerge "Avoid tsan warning about pthread_mutex_destroy."
Yabin Cui [Thu, 19 Nov 2015 01:55:25 +0000 (01:55 +0000)]
Merge "Avoid tsan warning about pthread_mutex_destroy."

8 years agoImplement pthread spin.
Yabin Cui [Wed, 18 Nov 2015 00:03:18 +0000 (16:03 -0800)]
Implement pthread spin.

In order to run tsan unit tests, we need to support pthread spin APIs.

Bug: 18623621
Bug: 25392375
Change-Id: Icbb4a74e72e467824b3715982a01600031868e29

8 years agoMerge "Ignore target sdk version for the public namespace" am: 63f0e0db76
Dimitry Ivanov [Wed, 18 Nov 2015 17:20:26 +0000 (17:20 +0000)]
Merge "Ignore target sdk version for the public namespace" am: 63f0e0db76
am: 3f539a1655

* commit '3f539a16555739cc5d429926d29870f8661a6c54':
  Ignore target sdk version for the public namespace

8 years agoMerge "Ignore target sdk version for the public namespace"
Dimitry Ivanov [Wed, 18 Nov 2015 03:52:50 +0000 (03:52 +0000)]
Merge "Ignore target sdk version for the public namespace"
am: 63f0e0db76

* commit '63f0e0db768ea9be4db3dd6a2fb62ea942afb9d6':
  Ignore target sdk version for the public namespace

8 years agoMerge "Ignore target sdk version for the public namespace"
Dimitry Ivanov [Wed, 18 Nov 2015 03:43:59 +0000 (03:43 +0000)]
Merge "Ignore target sdk version for the public namespace"

8 years agoIgnore target sdk version for the public namespace
Dmitriy Ivanov [Wed, 18 Nov 2015 02:36:50 +0000 (18:36 -0800)]
Ignore target sdk version for the public namespace

This fixes the bug with using the libraries loaded
prior to android_set_target_sdk_version call.

Bug: http://b/22548808
Change-Id: I3ca2d367b0fa930a437bbb65f780834803d2ef0a

8 years agoMerge "Implement pthread barrier." am: b804b9d67b am: 278fe431b6
Yabin Cui [Wed, 18 Nov 2015 00:25:17 +0000 (00:25 +0000)]
Merge "Implement pthread barrier." am: b804b9d67b am: 278fe431b6
am: aa49c45da0

* commit 'aa49c45da072a714f413c9e70f3b7108fbe79933':

8 years agoMerge "Remove the warning about empty LD_LIBRARY_PATH" am: 3c8c16022a am: 159c3d617f
Dimitry Ivanov [Wed, 18 Nov 2015 00:24:13 +0000 (00:24 +0000)]
Merge "Remove the warning about empty LD_LIBRARY_PATH" am: 3c8c16022a am: 159c3d617f
am: b93305fa18

* commit 'b93305fa18e542eb697af4970efb2061981ba7b5':

8 years agoMerge "Enable clang to compile more tests." am: 949bfb9e3c am: 4d87f17621
Chih-hung Hsieh [Wed, 18 Nov 2015 00:23:39 +0000 (00:23 +0000)]
Merge "Enable clang to compile more tests." am: 949bfb9e3c am: 4d87f17621
am: 7194e2e2a1

* commit '7194e2e2a1865168085050a862c989bad1e184b9':

8 years agoMerge "Fix arm64 and x86 builds" am: 61f186d067 am: b061c9250d
Dimitry Ivanov [Wed, 18 Nov 2015 00:23:24 +0000 (00:23 +0000)]
Merge "Fix arm64 and x86 builds" am: 61f186d067 am: b061c9250d
am: d4e0e91d56

* commit 'd4e0e91d5687721db47e5528de6cd689b1ffc01a':

8 years agoMerge "Introducing linker namespaces" am: 1f0ccbb59c am: 2616cdcdb9
Dimitry Ivanov [Wed, 18 Nov 2015 00:23:05 +0000 (00:23 +0000)]
Merge "Introducing linker namespaces" am: 1f0ccbb59c am: 2616cdcdb9
am: 017a48ac30

* commit '017a48ac30d36fc29613a1a06c89da8a57cbae3a':

8 years agoAvoid tsan warning about pthread_mutex_destroy.
Yabin Cui [Tue, 17 Nov 2015 04:19:31 +0000 (20:19 -0800)]
Avoid tsan warning about pthread_mutex_destroy.

If calling pthread_mutex_trylock from pthread_mutex_destroy, tsan
warns about an attempt to destroy a locked mutex.

Bug: 25392375
Change-Id: I5feee20e7a0d0915adad24da874ec1ccce241381

8 years agoresolve merge conflicts of 7cf45c6ee1 to master.
Brian Carlstrom [Tue, 17 Nov 2015 05:38:38 +0000 (21:38 -0800)]
resolve merge conflicts of 7cf45c6ee1 to master.

Change-Id: I7765a3de9b2ca02ae90a3adaa69eeea52815cc7f

8 years agoMerge "Implement pthread barrier."
Yabin Cui [Tue, 17 Nov 2015 05:25:26 +0000 (05:25 +0000)]
Merge "Implement pthread barrier."
am: b804b9d67b

* commit 'b804b9d67b9e3a8c63471ff9892f6abea2a58684':
  Implement pthread barrier.

8 years agoMerge "Remove the warning about empty LD_LIBRARY_PATH"
Dimitry Ivanov [Tue, 17 Nov 2015 05:25:21 +0000 (05:25 +0000)]
Merge "Remove the warning about empty LD_LIBRARY_PATH"
am: 3c8c16022a

* commit '3c8c16022a513a32eb6b92cf23f4ef43ccf7ad6d':
  Remove the warning about empty LD_LIBRARY_PATH

8 years agoMerge "Enable clang to compile more tests."
Chih-hung Hsieh [Tue, 17 Nov 2015 05:25:17 +0000 (05:25 +0000)]
Merge "Enable clang to compile more tests."
am: 949bfb9e3c

* commit '949bfb9e3cceac7913fe1debc39617c9ec01ae5e':
  Enable clang to compile more tests.

8 years agoMerge "Fix arm64 and x86 builds"
Dimitry Ivanov [Tue, 17 Nov 2015 05:25:12 +0000 (05:25 +0000)]
Merge "Fix arm64 and x86 builds"
am: 61f186d067

* commit '61f186d067a3efb6a86450092a567fb18c1641c3':
  Fix arm64 and x86 builds

8 years agoMerge "Introducing linker namespaces"
Dimitry Ivanov [Tue, 17 Nov 2015 05:25:05 +0000 (05:25 +0000)]
Merge "Introducing linker namespaces"
am: 1f0ccbb59c

* commit '1f0ccbb59cd32dfad0e6d9fd9619905e067076a6':
  Introducing linker namespaces

8 years agoMerge goog/mirror-aosp-master to goog/mnc-dr2-dev-plus-aosp
Brian Carlstrom [Tue, 17 Nov 2015 03:40:55 +0000 (19:40 -0800)]
Merge goog/mirror-aosp-master to goog/mnc-dr2-dev-plus-aosp

Change-Id: Ib8e9a389c8020544e392643747bd7fb58f60953b

8 years agoMerge "Implement pthread barrier." am: b804b9d67b
Yabin Cui [Tue, 17 Nov 2015 00:32:03 +0000 (00:32 +0000)]
Merge "Implement pthread barrier." am: b804b9d67b
am: 278fe431b6

* commit '278fe431b6045527f379f69dbdd25e66a434c949':
  Implement pthread barrier.

8 years agoam 1d76f1cc: Merge "add a fortified implementation of realpath"
Nick Kralevich [Tue, 17 Nov 2015 00:32:00 +0000 (00:32 +0000)]
am 1d76f1cc: Merge "add a fortified implementation of realpath"
am: c2e2a9ddec

* commit 'c2e2a9ddec76ef663c0129f0d0ff7f35d9a1d9f6':

8 years agoMerge "Implement pthread barrier."
Yabin Cui [Tue, 17 Nov 2015 00:28:20 +0000 (00:28 +0000)]
Merge "Implement pthread barrier."
am: b804b9d67b

* commit 'b804b9d67b9e3a8c63471ff9892f6abea2a58684':
  Implement pthread barrier.

8 years agoMerge "Implement pthread barrier."
Yabin Cui [Tue, 17 Nov 2015 00:22:54 +0000 (00:22 +0000)]
Merge "Implement pthread barrier."

8 years agoMerge "Remove the warning about empty LD_LIBRARY_PATH" am: 3c8c16022a
Dimitry Ivanov [Mon, 16 Nov 2015 22:33:24 +0000 (22:33 +0000)]
Merge "Remove the warning about empty LD_LIBRARY_PATH" am: 3c8c16022a
am: 159c3d617f

* commit '159c3d617fb5f1d9bfb32681a1e526a7798892fe':
  Remove the warning about empty LD_LIBRARY_PATH

8 years agoMerge "Remove the warning about empty LD_LIBRARY_PATH"
Dimitry Ivanov [Mon, 16 Nov 2015 22:30:32 +0000 (22:30 +0000)]
Merge "Remove the warning about empty LD_LIBRARY_PATH"
am: 3c8c16022a

* commit '3c8c16022a513a32eb6b92cf23f4ef43ccf7ad6d':
  Remove the warning about empty LD_LIBRARY_PATH

8 years agoAdd <sysexits.h>.
Elliott Hughes [Mon, 29 Jun 2015 20:44:34 +0000 (13:44 -0700)]
Add <sysexits.h>.

Taken from current upstream OpenBSD.

Bug: http://b/22172963

(cherry picked from commit 59d5854d145263f8e68a7312bf52894269203029)

Change-Id: Ie9e16789b7a248ac004e19ebf8ad01679208d332

8 years agoAdd some glibc-like #defines for libchrome.
Elliott Hughes [Tue, 7 Jul 2015 16:22:32 +0000 (09:22 -0700)]
Add some glibc-like #defines for libchrome.

libchrome uses __USE_XOPEN2K8 to decide whether futimens is
available. That's perhaps not the best idea, but there are other
cases where we defined the same feature macros as glibc to aid
portability.

(cherry picked from commit 7ea817d39ecfdb0f42a61ea87c81105461710a93)

Change-Id: I003442825778b5b2bcbbd4938eb213e581c355ed

8 years agoAdd timespec/timeval conversion helpers.
Bertrand SIMONNET [Thu, 16 Jul 2015 18:50:39 +0000 (11:50 -0700)]
Add timespec/timeval conversion helpers.

TIMESPEC_TO_TIMEVAL and TIMEVAL_TO_TIMESPEC are usually provided by
sys/time.h.

BUG: 22532790

(cherry picked from commit 0875ba3095782387370cba2e36ebc5df7acbcb7e)

Change-Id: I79f5bc66a6a5d565f91bde5248a17c6327ac949f

8 years agolibc: Add sys/fcntl.h for compatibility.
Daniel Erat [Wed, 8 Jul 2015 21:01:50 +0000 (15:01 -0600)]
libc: Add sys/fcntl.h for compatibility.

Add a /usr/include/sys/fcntl.h file that includes <fcntl.h>.

(cherry picked from commit e55151472b89067672e865858ccc2d2f28b91cd6)

Change-Id: I1eff872be589a5bcf9fd56077c71f8002c74fdaf

8 years agoMerge "Remove the warning about empty LD_LIBRARY_PATH"
Dimitry Ivanov [Mon, 16 Nov 2015 22:25:50 +0000 (22:25 +0000)]
Merge "Remove the warning about empty LD_LIBRARY_PATH"

8 years agoRemove the warning about empty LD_LIBRARY_PATH
Dmitriy Ivanov [Mon, 16 Nov 2015 22:23:37 +0000 (14:23 -0800)]
Remove the warning about empty LD_LIBRARY_PATH

Change-Id: I3eca11512d8055ab94dd0a6badcd83ce6440d675

8 years agoImplement pthread barrier.
Yabin Cui [Fri, 6 Nov 2015 06:06:09 +0000 (22:06 -0800)]
Implement pthread barrier.

Bug: 24341262
Change-Id: I5472549e5d7545c1c3f0bef78235f545557b9630

8 years agoMerge "Enable clang to compile more tests." am: 949bfb9e3c
Chih-hung Hsieh [Mon, 16 Nov 2015 21:41:36 +0000 (21:41 +0000)]
Merge "Enable clang to compile more tests." am: 949bfb9e3c
am: 4d87f17621

* commit '4d87f1762116a1a4392b96a49a2cb56640289ba1':
  Enable clang to compile more tests.

8 years agoMerge "Enable clang to compile more tests."
Chih-hung Hsieh [Mon, 16 Nov 2015 21:36:51 +0000 (21:36 +0000)]
Merge "Enable clang to compile more tests."
am: 949bfb9e3c

* commit '949bfb9e3cceac7913fe1debc39617c9ec01ae5e':
  Enable clang to compile more tests.

8 years agoMerge "Enable clang to compile more tests."
Chih-hung Hsieh [Mon, 16 Nov 2015 21:31:36 +0000 (21:31 +0000)]
Merge "Enable clang to compile more tests."

8 years agoMerge "Fix arm64 and x86 builds" am: 61f186d067
Dimitry Ivanov [Mon, 16 Nov 2015 21:29:35 +0000 (21:29 +0000)]
Merge "Fix arm64 and x86 builds" am: 61f186d067
am: b061c9250d

* commit 'b061c9250d26a3735baeabb37a8eb63389fddafb':
  Fix arm64 and x86 builds

8 years agoMerge "Fix arm64 and x86 builds"
Dimitry Ivanov [Mon, 16 Nov 2015 21:25:31 +0000 (21:25 +0000)]
Merge "Fix arm64 and x86 builds"
am: 61f186d067

* commit '61f186d067a3efb6a86450092a567fb18c1641c3':
  Fix arm64 and x86 builds

8 years agoMerge "Fix arm64 and x86 builds"
Dimitry Ivanov [Mon, 16 Nov 2015 21:23:18 +0000 (21:23 +0000)]
Merge "Fix arm64 and x86 builds"

8 years agoFix arm64 and x86 builds
Dmitriy Ivanov [Mon, 16 Nov 2015 21:17:27 +0000 (13:17 -0800)]
Fix arm64 and x86 builds

Change-Id: Ic3746b2f200f42218b6ac857c1631e873c767c17

8 years agoMerge "Introducing linker namespaces" am: 1f0ccbb59c
Dimitry Ivanov [Mon, 16 Nov 2015 20:26:18 +0000 (20:26 +0000)]
Merge "Introducing linker namespaces" am: 1f0ccbb59c
am: 2616cdcdb9

* commit '2616cdcdb9a03ddb80ad844b3f6649483a9a9469':
  Introducing linker namespaces

8 years agoMerge "Introducing linker namespaces"
Dimitry Ivanov [Mon, 16 Nov 2015 20:21:05 +0000 (20:21 +0000)]
Merge "Introducing linker namespaces"
am: 1f0ccbb59c

* commit '1f0ccbb59cd32dfad0e6d9fd9619905e067076a6':
  Introducing linker namespaces

8 years agoMerge "Introducing linker namespaces"
Dimitry Ivanov [Mon, 16 Nov 2015 20:14:37 +0000 (20:14 +0000)]
Merge "Introducing linker namespaces"

8 years agoEnable clang to compile more tests.
Chih-Hung Hsieh [Mon, 16 Nov 2015 19:13:04 +0000 (11:13 -0800)]
Enable clang to compile more tests.

* Disable optimization only in gtest.h of atexit_test.c for arm/aarch64
  to keep VTT for std::__1::basic_stringstream<char, std::__1::char_traits<char>,
  std::__1::allocator<char> > to link with g++ compiled modules.
* bionic-unit-tests source files are not affected by clang x86_64 fp128 bug
  so they can be compiled with clang.

BUG: 25643775
Change-Id: I3da2a0de61edcdca07b7fcd73a16de9da4a1f7d6

8 years agoIntroducing linker namespaces
Dmitriy Ivanov [Fri, 30 Oct 2015 00:01:24 +0000 (17:01 -0700)]
Introducing linker namespaces

Bug: http://b/22548808
Change-Id: Ia3af3c0a167f1d16447a3d83bb045d143319b1e1

8 years agoMerge "Improve libc time zone fallback behavior." am: 1b42c54471 am: 69536213d6
Elliott Hughes [Fri, 13 Nov 2015 18:38:30 +0000 (18:38 +0000)]
Merge "Improve libc time zone fallback behavior." am: 1b42c54471 am: 69536213d6
am: fec45175de

* commit 'fec45175de169da152c7d8ee03255fa5d6b93cd5':
  Improve libc time zone fallback behavior.

8 years agoMerge "Improve libc time zone fallback behavior." am: 1b42c54471
Elliott Hughes [Fri, 13 Nov 2015 18:32:04 +0000 (18:32 +0000)]
Merge "Improve libc time zone fallback behavior." am: 1b42c54471
am: 69536213d6

* commit '69536213d6c5984438880cdd897e646511a51a17':
  Improve libc time zone fallback behavior.

8 years agoMerge "Improve libc time zone fallback behavior."
Elliott Hughes [Fri, 13 Nov 2015 18:28:57 +0000 (18:28 +0000)]
Merge "Improve libc time zone fallback behavior."
am: 1b42c54471

* commit '1b42c544711316281e09c5da25850fac531b27cb':
  Improve libc time zone fallback behavior.

8 years agoMerge "Improve libc time zone fallback behavior."
Elliott Hughes [Fri, 13 Nov 2015 18:24:41 +0000 (18:24 +0000)]
Merge "Improve libc time zone fallback behavior."

8 years agoImprove libc time zone fallback behavior.
Elliott Hughes [Fri, 13 Nov 2015 16:38:48 +0000 (08:38 -0800)]
Improve libc time zone fallback behavior.

We should fall back to GMT if neither the environment variable nor the
system property is set. This is the case if you wipe a WiFi-only device,
because we currently only take the time zone from cell networks.

Bug: http://b/24773112
Change-Id: I90d236d4d492b6562d75021bd312030b91c1e298

8 years agoMerge "Fix strftime if tm_zone is null." am: 5780f9d809 am: 5187baa387
Elliott Hughes [Fri, 13 Nov 2015 03:11:39 +0000 (03:11 +0000)]
Merge "Fix strftime if tm_zone is null." am: 5780f9d809 am: 5187baa387
am: 9fad526493

* commit '9fad526493a402591693c9273968307ec79fd87c':
  Fix strftime if tm_zone is null.

8 years agoMerge "Fix strftime if tm_zone is null." am: 5780f9d809
Elliott Hughes [Fri, 13 Nov 2015 03:08:30 +0000 (03:08 +0000)]
Merge "Fix strftime if tm_zone is null." am: 5780f9d809
am: 5187baa387

* commit '5187baa387dcd73cb99c45897949a6353db7175a':
  Fix strftime if tm_zone is null.

8 years agoMerge "Fix strftime if tm_zone is null."
Elliott Hughes [Fri, 13 Nov 2015 03:04:31 +0000 (03:04 +0000)]
Merge "Fix strftime if tm_zone is null."
am: 5780f9d809

* commit '5780f9d80963fbe7b93f501dd3dd7edc7fab46b0':
  Fix strftime if tm_zone is null.

8 years agoMerge "Fix strftime if tm_zone is null."
Elliott Hughes [Fri, 13 Nov 2015 02:58:30 +0000 (02:58 +0000)]
Merge "Fix strftime if tm_zone is null."

8 years agoMerge "FORTIFY_SOURCE: make sure gcc unittests are compiled with gcc" am: 4ea67f6950...
Nick Kralevich [Fri, 13 Nov 2015 01:18:24 +0000 (01:18 +0000)]
Merge "FORTIFY_SOURCE: make sure gcc unittests are compiled with gcc" am: 4ea67f6950 am: bb725f7b77
am: 0df0f1e10d

* commit '0df0f1e10d51db2d0a9b7bfa0b73118bea9ef203':
  FORTIFY_SOURCE: make sure gcc unittests are compiled with gcc

8 years agoMerge "FORTIFY_SOURCE: make sure gcc unittests are compiled with gcc" am: 4ea67f6950
Nick Kralevich [Fri, 13 Nov 2015 01:15:20 +0000 (01:15 +0000)]
Merge "FORTIFY_SOURCE: make sure gcc unittests are compiled with gcc" am: 4ea67f6950
am: bb725f7b77

* commit 'bb725f7b7760f7b1c5ed9a07d6f10619d5abdd6e':
  FORTIFY_SOURCE: make sure gcc unittests are compiled with gcc

8 years agoMerge "FORTIFY_SOURCE: make sure gcc unittests are compiled with gcc"
Nick Kralevich [Fri, 13 Nov 2015 01:12:41 +0000 (01:12 +0000)]
Merge "FORTIFY_SOURCE: make sure gcc unittests are compiled with gcc"
am: 4ea67f6950

* commit '4ea67f695066b73796b24563d83e8b5a9190334d':
  FORTIFY_SOURCE: make sure gcc unittests are compiled with gcc

8 years agoMerge "FORTIFY_SOURCE: make sure gcc unittests are compiled with gcc"
Nick Kralevich [Fri, 13 Nov 2015 01:09:44 +0000 (01:09 +0000)]
Merge "FORTIFY_SOURCE: make sure gcc unittests are compiled with gcc"

8 years agoFix strftime if tm_zone is null.
Elliott Hughes [Fri, 13 Nov 2015 00:51:31 +0000 (16:51 -0800)]
Fix strftime if tm_zone is null.

Upstream tzcode said "On platforms with tm_zone, strftime.c now assumes it
is not NULL". Which is fine for any struct tm generated by tzcode, but not
necessarily true of a struct tm constructed by arbitrary code. In particular,
Netflix on Nexus Player was failing to start because they format "%Z" with
a struct tm whose tm_zone is null (the other fields are valid, but, yeah,
that's probably not intentional).

glibc takes a null tm_zone to mean "the current time zone", so let's do that
too. (Historically Android would use the empty string, and POSIX doesn't
clarify which of this is the appropriate behavior when tm_zone is null.)

Bug: http://b/25170306
Change-Id: Idbf68bfe90d143aca7dada8607742905188b1d33

8 years agoFORTIFY_SOURCE: make sure gcc unittests are compiled with gcc
Nick Kralevich [Thu, 12 Nov 2015 23:55:13 +0000 (15:55 -0800)]
FORTIFY_SOURCE: make sure gcc unittests are compiled with gcc

The default compiler is clang. We need to explicitly indicate
that we should use gcc.

Change-Id: I37859c2e303f2a86a2565fe72eda1fda7c557a59

8 years agoMerge "Still cannot compile with clang on arm64." am: 7c10ee9473 am: a2e9d90811
Chih-hung Hsieh [Thu, 12 Nov 2015 23:11:56 +0000 (23:11 +0000)]
Merge "Still cannot compile with clang on arm64." am: 7c10ee9473 am: a2e9d90811
am: 1b383af1a1

* commit '1b383af1a17487b0721b11e95620b397e01fddf1':
  Still cannot compile with clang on arm64.

8 years agoMerge "Still cannot compile with clang on arm64." am: 7c10ee9473
Chih-hung Hsieh [Thu, 12 Nov 2015 20:54:54 +0000 (20:54 +0000)]
Merge "Still cannot compile with clang on arm64." am: 7c10ee9473
am: a2e9d90811

* commit 'a2e9d90811c98a43cf337503a488d56d39d27628':
  Still cannot compile with clang on arm64.

8 years agoMerge "Still cannot compile with clang on arm64."
Chih-hung Hsieh [Thu, 12 Nov 2015 20:51:05 +0000 (20:51 +0000)]
Merge "Still cannot compile with clang on arm64."
am: 7c10ee9473

* commit '7c10ee9473b5c46da733b2d3d24cf90fb8ac7672':
  Still cannot compile with clang on arm64.

8 years agoMerge "Still cannot compile with clang on arm64."
Chih-hung Hsieh [Thu, 12 Nov 2015 20:45:48 +0000 (20:45 +0000)]
Merge "Still cannot compile with clang on arm64."

8 years agoStill cannot compile with clang on arm64.
Chih-Hung Hsieh [Thu, 12 Nov 2015 20:39:13 +0000 (12:39 -0800)]
Still cannot compile with clang on arm64.

When __cxa_thread_atexit_impl.cpp is compiled with clang on arm64,
Android cannot boot up.

BUG: 25662915
Change-Id: If997b544f43e956172ce605d86fe147d42fd39e0

8 years agoMerge "Enable clang for modules failed with TLS." am: 0c447053de am: c0116bd3db
Chih-hung Hsieh [Thu, 12 Nov 2015 01:17:38 +0000 (01:17 +0000)]
Merge "Enable clang for modules failed with TLS." am: 0c447053de am: c0116bd3db
am: 1339a82744

* commit '1339a82744f08e199d3a945fe2f68ff4fc57ae68':
  Enable clang for modules failed with TLS.

8 years agoMerge "Enable clang for modules failed with TLS." am: 0c447053de
Chih-hung Hsieh [Thu, 12 Nov 2015 01:13:29 +0000 (01:13 +0000)]
Merge "Enable clang for modules failed with TLS." am: 0c447053de
am: c0116bd3db

* commit 'c0116bd3dbd5652e70643c239e58d4d225f83098':
  Enable clang for modules failed with TLS.

8 years agoMerge "Clean up pthread_gettid_np test." am: dbc6398e95 am: fd57638117
Elliott Hughes [Thu, 12 Nov 2015 01:13:22 +0000 (01:13 +0000)]
Merge "Clean up pthread_gettid_np test." am: dbc6398e95 am: fd57638117
am: 8679a56162

* commit '8679a56162b115cbbd3129aae126baec9d227b6b':
  Clean up pthread_gettid_np test.

8 years agoMerge "Enable clang for modules failed with TLS."
Chih-hung Hsieh [Thu, 12 Nov 2015 01:09:37 +0000 (01:09 +0000)]
Merge "Enable clang for modules failed with TLS."
am: 0c447053de

* commit '0c447053de4b87d50ebec260c7e1d949fe934065':
  Enable clang for modules failed with TLS.

8 years agoMerge "Clean up pthread_gettid_np test." am: dbc6398e95
Elliott Hughes [Thu, 12 Nov 2015 01:09:31 +0000 (01:09 +0000)]
Merge "Clean up pthread_gettid_np test." am: dbc6398e95
am: fd57638117

* commit 'fd57638117c45849eae495d812a12c6d68330e3d':
  Clean up pthread_gettid_np test.

8 years agoMerge "Enable clang for modules failed with TLS."
Chih-hung Hsieh [Thu, 12 Nov 2015 01:04:51 +0000 (01:04 +0000)]
Merge "Enable clang for modules failed with TLS."

8 years agoMerge "Clean up pthread_gettid_np test."
Elliott Hughes [Thu, 12 Nov 2015 01:04:38 +0000 (01:04 +0000)]
Merge "Clean up pthread_gettid_np test."
am: dbc6398e95

* commit 'dbc6398e95df44a18715ce5ba19b8e1a93b969d4':
  Clean up pthread_gettid_np test.

8 years agoMerge "Clean up pthread_gettid_np test."
Elliott Hughes [Thu, 12 Nov 2015 00:59:08 +0000 (00:59 +0000)]
Merge "Clean up pthread_gettid_np test."

8 years agoEnable clang for modules failed with TLS.
Chih-Hung Hsieh [Tue, 10 Nov 2015 19:15:43 +0000 (11:15 -0800)]
Enable clang for modules failed with TLS.

New 3.8 clang/llvm can compile TLS code now.
* For x86_64, still disable clang due to f128 bug.
* For b/25643775, arm and arm64, disable clang in unit tests.
* Fix thread_local_test.cpp to compile with clang and
  limit gcc workaround only to arm and aarch64.

BUG: 25643775

Change-Id: Iecd006bf1fc417dbcce2c63343a59c4bf1fa77ea

8 years agoMerge "Add 100 column limit to .clang-format." am: b03e6bf924 am: 504e3274a0
Josh Gao [Wed, 11 Nov 2015 22:31:48 +0000 (22:31 +0000)]
Merge "Add 100 column limit to .clang-format." am: b03e6bf924 am: 504e3274a0
am: 004092650d

* commit '004092650d5c8e4cf2e33f91c33e7804e64dd115':
  Add 100 column limit to .clang-format.

8 years agoMerge "Add 100 column limit to .clang-format." am: b03e6bf924
Josh Gao [Wed, 11 Nov 2015 22:28:45 +0000 (22:28 +0000)]
Merge "Add 100 column limit to .clang-format." am: b03e6bf924
am: 504e3274a0

* commit '504e3274a09f32834e3c5c8b6af308230f3cbedf':
  Add 100 column limit to .clang-format.

8 years agoMerge "Add 100 column limit to .clang-format."
Josh Gao [Wed, 11 Nov 2015 22:25:42 +0000 (22:25 +0000)]
Merge "Add 100 column limit to .clang-format."
am: b03e6bf924

* commit 'b03e6bf9247bb36162b9f4c61d07e488a18e126c':
  Add 100 column limit to .clang-format.

8 years agoMerge "Add 100 column limit to .clang-format."
Josh Gao [Wed, 11 Nov 2015 22:22:59 +0000 (22:22 +0000)]
Merge "Add 100 column limit to .clang-format."

8 years agoAdd 100 column limit to .clang-format.
Josh Gao [Wed, 11 Nov 2015 22:21:09 +0000 (14:21 -0800)]
Add 100 column limit to .clang-format.

Change-Id: I3c3fa5e61cfb2af7f2888dcee56229692ec1479c

8 years agoMerge "Fix potential race condition on CTS TC pthread_gettid_np" am: ffe5c24c86 am...
Elliott Hughes [Wed, 11 Nov 2015 21:33:46 +0000 (21:33 +0000)]
Merge "Fix potential race condition on CTS TC pthread_gettid_np" am: ffe5c24c86 am: 2b1e258fec
am: f4e6650000

* commit 'f4e665000063c9f401b10876315ddd35736422d8':
  Fix potential race condition on CTS TC pthread_gettid_np

8 years agoClean up pthread_gettid_np test.
Elliott Hughes [Wed, 11 Nov 2015 21:32:28 +0000 (13:32 -0800)]
Clean up pthread_gettid_np test.

Change-Id: I0fad26c7824981bfa3ad3a8a0b28a1984062dcd1

8 years agoMerge "Fix potential race condition on CTS TC pthread_gettid_np" am: ffe5c24c86
Elliott Hughes [Wed, 11 Nov 2015 21:29:13 +0000 (21:29 +0000)]
Merge "Fix potential race condition on CTS TC pthread_gettid_np" am: ffe5c24c86
am: 2b1e258fec

* commit '2b1e258fec89a5abd20f6d7ee8a102cd9b2c27bc':
  Fix potential race condition on CTS TC pthread_gettid_np

8 years agoMerge "Fix potential race condition on CTS TC pthread_gettid_np"
Elliott Hughes [Wed, 11 Nov 2015 21:25:38 +0000 (21:25 +0000)]
Merge "Fix potential race condition on CTS TC pthread_gettid_np"
am: ffe5c24c86

* commit 'ffe5c24c8693f1f4fc8edb68075fb36df558b801':
  Fix potential race condition on CTS TC pthread_gettid_np

8 years agoMerge "Fix potential race condition on CTS TC pthread_gettid_np"
Elliott Hughes [Wed, 11 Nov 2015 21:21:33 +0000 (21:21 +0000)]
Merge "Fix potential race condition on CTS TC pthread_gettid_np"