Commit Graph

6284 Commits

Author SHA1 Message Date
Elliott Hughes
f6bf2cd9b1 am 8441e031: am 61ec6a62: am cc9b7456: Merge "Move the pthread debugging flags to the right place."
* commit '8441e0312cf0215560b502a38284b1e918a31364':
  Move the pthread debugging flags to the right place.
2013-10-31 14:29:14 -07:00
Elliott Hughes
8441e0312c am 61ec6a62: am cc9b7456: Merge "Move the pthread debugging flags to the right place."
* commit '61ec6a621c699d68246a3dfe724fa13f0555ecf4':
  Move the pthread debugging flags to the right place.
2013-10-31 14:26:46 -07:00
Elliott Hughes
61ec6a621c am cc9b7456: Merge "Move the pthread debugging flags to the right place."
* commit 'cc9b7456b66b7c7c218a9d1f00d7aef1f5ecf409':
  Move the pthread debugging flags to the right place.
2013-10-31 14:25:03 -07:00
Elliott Hughes
cc9b7456b6 Merge "Move the pthread debugging flags to the right place." 2013-10-31 21:23:29 +00:00
Elliott Hughes
66759d6041 Move the pthread debugging flags to the right place.
Change-Id: Ie805bd837d1f72cdf1818e056c0baeb0857e4e84
2013-10-31 14:09:39 -07:00
Elliott Hughes
0f83967545 am ff9b41de: am 5ab8d33a: Upgrade to tzdata2013h.
* commit 'ff9b41de6285961d4c397ae660cf8c11a6508af0':
  Upgrade to tzdata2013h.
2013-10-31 13:53:37 -07:00
Elliott Hughes
ff9b41de62 am 5ab8d33a: Upgrade to tzdata2013h.
* commit '5ab8d33aa64a4ca12172dba92df172f70629874d':
  Upgrade to tzdata2013h.
2013-10-31 13:50:33 -07:00
Elliott Hughes
e0503cca60 am 26e9e3c7: am 1658691e: am 0360e3ab: Merge "<pthread.h> fixes and pthread cleanup."
* commit '26e9e3c76a082ae8b6b06208270c7aaf713d2853':
  <pthread.h> fixes and pthread cleanup.
2013-10-31 13:45:49 -07:00
Elliott Hughes
26e9e3c76a am 1658691e: am 0360e3ab: Merge "<pthread.h> fixes and pthread cleanup."
* commit '1658691e0cfe2eb221bee837649de1907a579a0b':
  <pthread.h> fixes and pthread cleanup.
2013-10-31 13:43:18 -07:00
Elliott Hughes
5ab8d33aa6 Upgrade to tzdata2013h.
From the release notes:

  Changes affecting current and future time stamps:

    Libya has switched its time zone back to UTC+2 without DST,
    instead of UTC+1 with DST.  (Thanks to Even Scharning.)

    Western Sahara (Africa/El_Aaiun) uses Morocco's DST rules.
    (Thanks to Gwillim Law.)

  Changes affecting future time stamps:

    Acre and (we guess) western Amazonas will switch from UTC-4 to UTC-5
    on 2013-11-10.  This affects America/Rio_Branco and America/Eirunepe.
    (Thanks to Steffen Thorsen.)

    Add entries for DST transitions in Morocco in the year 2038.
    This avoids some year-2038 glitches introduced in 2013g.
    (Thanks to Yoshito Umaoka for reporting the problem.)

(cherry picked from commit 3df3879bd6)

Change-Id: Ibdac6cc1db0fe24c62fe68e99d057dface6b6745
2013-10-31 13:41:31 -07:00
Elliott Hughes
1658691e0c am 0360e3ab: Merge "<pthread.h> fixes and pthread cleanup."
* commit '0360e3ab2d21d4b4b3d5590765857bef595c0046':
  <pthread.h> fixes and pthread cleanup.
2013-10-31 13:41:00 -07:00
Elliott Hughes
0360e3ab2d Merge "<pthread.h> fixes and pthread cleanup." 2013-10-31 20:36:48 +00:00
Elliott Hughes
c3f114037d <pthread.h> fixes and pthread cleanup.
<pthread.h> was missing nonnull attributes, noreturn on pthread_exit,
and had incorrect cv qualifiers for several standard functions.

I've also marked the non-standard stuff (where I count glibc rather
than POSIX as "standard") so we can revisit this cruft for LP64 and
try to ensure we're compatible with glibc.

I've also broken out the pthread_cond* functions into a new file.

I've made the remaining pthread files (plus ptrace) part of the bionic code
and fixed all the warnings.

I've added a few more smoke tests for chunks of untested pthread functionality.

We no longer need the libc_static_common_src_files hack for any of the
pthread implementation because we long since stripped out the rest of
the armv5 support, and this hack was just to ensure that __get_tls in libc.a
went via the kernel if necessary.

This patch also finishes the job of breaking up the pthread.c monolith, and
adds a handful of new tests.

Change-Id: Idc0ae7f5d8aa65989598acd4c01a874fe21582c7
2013-10-31 12:31:16 -07:00
Elliott Hughes
9685cc4967 am b0b2e29d: am 9be24f71: am d0d0b52d: Merge "Remove an obsolete ARM gdb hack."
* commit 'b0b2e29d4eb252a6136348491b6ed85e3da42216':
  Remove an obsolete ARM gdb hack.
2013-10-30 14:44:18 -07:00
Elliott Hughes
b0b2e29d4e am 9be24f71: am d0d0b52d: Merge "Remove an obsolete ARM gdb hack."
* commit '9be24f71604d4e667bf23d77bb953a29737b3f2d':
  Remove an obsolete ARM gdb hack.
2013-10-30 14:42:59 -07:00
Elliott Hughes
9be24f7160 am d0d0b52d: Merge "Remove an obsolete ARM gdb hack."
* commit 'd0d0b52da375bfa85947a4257198791f615f18a8':
  Remove an obsolete ARM gdb hack.
2013-10-30 14:40:17 -07:00
Elliott Hughes
d0d0b52da3 Merge "Remove an obsolete ARM gdb hack." 2013-10-30 21:37:56 +00:00
Elliott Hughes
b5b97f20a8 Remove an obsolete ARM gdb hack.
Experiment shows that the claim in the makefile was false: gdb works fine
setting breakpoints in these functions when compiled without special treatment.

Change-Id: Ibdf4dd5a14d171c954b8c2089daaf28e1c310be9
2013-10-30 14:32:42 -07:00
Elliott Hughes
7a7380cdad am 0f3973bd: am 6cf34775: am 47a73363: Merge "Factor out some of the makefile cruft."
* commit '0f3973bdb5ad424c7c034c1dcb428b07848155ef':
  Factor out some of the makefile cruft.
2013-10-29 19:21:45 -07:00
Elliott Hughes
0f3973bdb5 am 6cf34775: am 47a73363: Merge "Factor out some of the makefile cruft."
* commit '6cf34775513859dd48b986162e761aff57df82fb':
  Factor out some of the makefile cruft.
2013-10-29 19:18:56 -07:00
Elliott Hughes
6cf3477551 am 47a73363: Merge "Factor out some of the makefile cruft."
* commit '47a73363fcdb88811eedbe484720fb08dc30a995':
  Factor out some of the makefile cruft.
2013-10-29 19:15:37 -07:00
Elliott Hughes
47a73363fc Merge "Factor out some of the makefile cruft." 2013-10-30 02:13:34 +00:00
Elliott Hughes
2b2a5b6139 am 86959493: am ee99ebbc: am 7a8e20c9: Merge "Explain the sigprocmask in pthread_exit."
* commit '8695949391d0d892351bb1b877b44d4171d8bead':
  Explain the sigprocmask in pthread_exit.
2013-10-29 18:36:20 -07:00
Christopher Ferris
7bc9b73a65 am fa088df4: am 4fbd0277: am f084f7dc: Merge "Fix up failing glibc tests."
* commit 'fa088df49ef6508b1e8072a37e67d95b2a4c60f3':
  Fix up failing glibc tests.
2013-10-29 18:36:20 -07:00
Elliott Hughes
8695949391 am ee99ebbc: am 7a8e20c9: Merge "Explain the sigprocmask in pthread_exit."
* commit 'ee99ebbc8f0447880f316a10b2249f813f964172':
  Explain the sigprocmask in pthread_exit.
2013-10-29 18:31:06 -07:00
Christopher Ferris
fa088df49e am 4fbd0277: am f084f7dc: Merge "Fix up failing glibc tests."
* commit '4fbd0277aedd9cf1e81648e9a849c52211a65adf':
  Fix up failing glibc tests.
2013-10-29 18:31:05 -07:00
Elliott Hughes
2f287bc728 Factor out some of the makefile cruft.
I really don't want to add yet another copy for aarch64.

Also sort arm, mips, and x86.

Also silence the "TARGET_ARCH_VARIANT" warning for non-ARM; Intel and MIPS
have both complained about it.

Change-Id: I32c592a90c0cf0cdae250d84035b3e4655543781
2013-10-29 16:59:54 -07:00
Elliott Hughes
ee99ebbc8f am 7a8e20c9: Merge "Explain the sigprocmask in pthread_exit."
* commit '7a8e20c9c7c11b0ef11b718f18be5e2df22edc1a':
  Explain the sigprocmask in pthread_exit.
2013-10-29 16:31:23 -07:00
Elliott Hughes
7a8e20c9c7 Merge "Explain the sigprocmask in pthread_exit." 2013-10-29 23:29:07 +00:00
Elliott Hughes
2b6e43e00e Explain the sigprocmask in pthread_exit.
Also remove the SIGSEGV special case, which was probably because
hand-written __exit_with_stack_teardown stubs used to try to cause
SIGSEGV if the exit system call returned (which it never does, so
that dead code disappeared).

Also move the sigprocmask into the only case where it's necessary ---
the one where we unmap the stack that would be used by a signal
handler.

Change-Id: Ie40d20c1ae2f5e7125131b6b492cba7a2c6d08e9
2013-10-29 16:11:06 -07:00
Christopher Ferris
4fbd0277ae am f084f7dc: Merge "Fix up failing glibc tests."
* commit 'f084f7dc1e4601f96c44eeb422615d7ac742b2d0':
  Fix up failing glibc tests.
2013-10-29 15:35:34 -07:00
Christopher Ferris
f084f7dc1e Merge "Fix up failing glibc tests." 2013-10-29 22:32:33 +00:00
Christopher Ferris
13613137bc Fix up failing glibc tests.
There is a known bug running clone with the CLONE_VM flag, so for host
create an empty test.

Change the expected output of the stdio test for a glibc difference.

Change the pause test to use ScopedSignalHandler to setup/restore the SIGALRM
handler.

After this, running bionic-unit-tests-glibc passes for all tests.

Bug: 11389824

Change-Id: Ib304eae4164115835a54991dfdca5821ecc3db5e
2013-10-29 14:55:11 -07:00
Elliott Hughes
e7c3bbab8d am 5abb9b15: am 3030157f: am 8e6e7cda: Merge "Update <sys/exec_elf.h> to include EM_AARCH64."
* commit '5abb9b15d11c700b8dd58aaa613a72af60c2f1ae':
  Update <sys/exec_elf.h> to include EM_AARCH64.
2013-10-29 08:59:46 -07:00
Elliott Hughes
5abb9b15d1 am 3030157f: am 8e6e7cda: Merge "Update <sys/exec_elf.h> to include EM_AARCH64."
* commit '3030157f82e012612ef4c6d999878be2f65116dd':
  Update <sys/exec_elf.h> to include EM_AARCH64.
2013-10-29 08:57:41 -07:00
Elliott Hughes
3030157f82 am 8e6e7cda: Merge "Update <sys/exec_elf.h> to include EM_AARCH64."
* commit '8e6e7cdadbb4efdeefaa73fe94f7a9a1722745a7':
  Update <sys/exec_elf.h> to include EM_AARCH64.
2013-10-29 08:53:53 -07:00
Elliott Hughes
8e6e7cdadb Merge "Update <sys/exec_elf.h> to include EM_AARCH64." 2013-10-29 15:50:33 +00:00
Elliott Hughes
126405039e Update <sys/exec_elf.h> to include EM_AARCH64.
Upstream added the constant for us.

Change-Id: I197e32d2e5b3fd499d069546ccfcc1d35d65e0a0
2013-10-28 21:28:40 -07:00
Elliott Hughes
e5bd139fd8 am bb9a8198: am e89d16d2: am 6e504fda: Merge "AArch64: Add support for AArch64 to stdlib/strtod.c"
* commit 'bb9a819857fdde4a12d57d19912dc4a4d4c6bd21':
  AArch64: Add support for AArch64 to stdlib/strtod.c
2013-10-28 16:41:04 -07:00
Elliott Hughes
bb9a819857 am e89d16d2: am 6e504fda: Merge "AArch64: Add support for AArch64 to stdlib/strtod.c"
* commit 'e89d16d24bb9d07856c7cc95464bfae970f4e847':
  AArch64: Add support for AArch64 to stdlib/strtod.c
2013-10-28 16:36:46 -07:00
Elliott Hughes
6af6c59a89 am 8d729753: am d4e28c23: am 830de5cb: Merge "AArch64: Autogenerated syscalls for AArch64"
* commit '8d7297538c781893b4619fbac50182632d8bc4fb':
  AArch64: Autogenerated syscalls for AArch64
2013-10-28 16:29:16 -07:00
Elliott Hughes
e89d16d24b am 6e504fda: Merge "AArch64: Add support for AArch64 to stdlib/strtod.c"
* commit '6e504fdaff6cb85edca312db56ce79f3477e4db1':
  AArch64: Add support for AArch64 to stdlib/strtod.c
2013-10-28 16:27:37 -07:00
Elliott Hughes
731892a72d am 61f8f7b5: am 48e0ee8a: am 93b7b819: Merge "AArch64: Add support for AArch64 to the syscall interface"
* commit '61f8f7b5106aaca8ae5c797fdf5b6e7e192b61ac':
  AArch64: Add support for AArch64 to the syscall interface
2013-10-28 16:25:53 -07:00
Elliott Hughes
8d7297538c am d4e28c23: am 830de5cb: Merge "AArch64: Autogenerated syscalls for AArch64"
* commit 'd4e28c236b592a4968bff354ad7ad192d5a3f36d':
  AArch64: Autogenerated syscalls for AArch64
2013-10-28 16:25:47 -07:00
Elliott Hughes
6e504fdaff Merge "AArch64: Add support for AArch64 to stdlib/strtod.c" 2013-10-28 23:25:27 +00:00
Serban Constantinescu
65ca282ecd AArch64: Add support for AArch64 to stdlib/strtod.c
This patch adds support for AArch64 to strtod.c definitions.

Change-Id: I9491c4371d921c00e73ae169877a9a71225731fb
Signed-off-by: Serban Constantinescu <serban.constantinescu@arm.com>
2013-10-28 16:24:51 -07:00
Elliott Hughes
d4e28c236b am 830de5cb: Merge "AArch64: Autogenerated syscalls for AArch64"
* commit '830de5cb30ba163f9c34fc87f624d6604adc3232':
  AArch64: Autogenerated syscalls for AArch64
2013-10-28 16:23:14 -07:00
Elliott Hughes
61f8f7b510 am 48e0ee8a: am 93b7b819: Merge "AArch64: Add support for AArch64 to the syscall interface"
* commit '48e0ee8a0900e820b2fb1bae6347e0d39da62096':
  AArch64: Add support for AArch64 to the syscall interface
2013-10-28 16:22:26 -07:00
Elliott Hughes
a6197366df am 87de1a01: am 5911e25b: am 07d3c6ce: Merge "Fix the *rand48 functions on LP64."
* commit '87de1a01546e5c23cab0770eb03ccaa3ffad93c7':
  Fix the *rand48 functions on LP64.
2013-10-28 16:21:28 -07:00
Elliott Hughes
48e0ee8a09 am 93b7b819: Merge "AArch64: Add support for AArch64 to the syscall interface"
* commit '93b7b8191238a8735141ed0f0b1222d8a30be3cc':
  AArch64: Add support for AArch64 to the syscall interface
2013-10-28 16:19:59 -07:00