Colin Cross
acfc63760e
Revert "HACK: linker: check for handle==0xffffffff on LP64"
...
This reverts commit 346fea0805
.
Change-Id: Id3fd79451e4218e68e39ce22f21408cbf93255ee
2014-06-16 15:44:20 -07:00
Elliott Hughes
e120cba31d
Merge "Cherrypick upstream OpenBSD's vfwprintf.c revision 1.11."
2014-06-04 16:17:10 +00:00
Dan Albert
452e091300
Merge "Adds functionality specified by uchar.h"
2014-06-04 16:10:50 +00:00
Elliott Hughes
be8df2e744
Cherrypick upstream OpenBSD's vfwprintf.c revision 1.11.
...
revision 1.11
date: 2014/06/04 07:45:25; author: stsp; state: Exp; lines: +1 -7; commitid:
zJPRH5RUO224FmQu;
Remove assigned but unused local variables and macro from vfwprintf().
Found by Elliott @ google
ok mpi@
Change-Id: I716edc0c4d736a484a5317942de8e87bd8c6fd26
2014-06-04 09:00:25 -07:00
Dan Albert
7a7f9952c1
Adds functionality specified by uchar.h
...
mbrtoc32 and c32rtomb get their implementations from mbrtowc and wcrtomb. The
wc functions now simply call the c32 functions.
Bug: 14646575
Change-Id: I49d4b95fed0f9d790260c996c4d0f8bfd1686324
2014-06-04 08:39:24 -07:00
Elliott Hughes
38ed337c13
Merge "Hide dlmalloc symbols."
2014-06-04 03:30:37 +00:00
Elliott Hughes
9b5235d74e
Hide dlmalloc symbols.
...
We need to leave dlmalloc_trim and dlmalloc_inspect_all exposed for
the VM, but if we're seriously looking at other malloc implementations,
that's something we're going to have to fix.
Bug: 11156955
Change-Id: If85156c280044f1616c09a3c50ba674aaf0e8d3a
2014-06-03 18:47:17 -07:00
Dan Albert
c380189410
Merge "Removes bcopy and bzero from bionic."
2014-06-04 01:00:40 +00:00
Dan Albert
ce9ce28e5d
Removes bcopy and bzero from bionic.
...
These symbols are still defined for LP32 for binary compatibility, but
the declarations have been replaced with the POSIX recommended #defines.
Bug: 13935372
Change-Id: Ief7e6ca012db374588ba5839f11e8f3a13a20467
2014-06-03 17:22:07 -07:00
Elliott Hughes
3dbc2fe33e
Merge "Work around "error: variable 'uio' set but not used"."
2014-06-03 23:41:35 +00:00
Elliott Hughes
b082645ccb
Work around "error: variable 'uio' set but not used".
...
I've sent the real fix upstream, and will merge that when they commit it.
Change-Id: I75e5cab87026f8990c585d364dd178753d727e2a
2014-06-03 16:39:58 -07:00
Elliott Hughes
bd6b849754
Merge "Remove an unused parameter from the dlopen implementation."
2014-06-03 23:36:35 +00:00
Elliott Hughes
1a58629340
Remove an unused parameter from the dlopen implementation.
...
Change-Id: I9297913a743bb570b48ebbe594ff711a481e89e0
2014-06-03 16:23:08 -07:00
Elliott Hughes
be15d16b72
Merge "Turn on -Wunused and fix the mistakes it uncovers."
2014-06-03 23:14:21 +00:00
Elliott Hughes
d286796fce
Turn on -Wunused and fix the mistakes it uncovers.
...
Change-Id: I023d2d8b547fbc21d4124bb7510d42b06a0dc501
2014-06-03 15:22:34 -07:00
Dan Albert
2f9400b679
Merge "Use __libc_fatal() for failed malloc in new"
2014-06-03 16:53:47 +00:00
Dan Albert
989725940e
Use __libc_fatal() for failed malloc in new
...
This way we can print a useful message to the log isntead of just dying
mysteriously.
Change-Id: Ib660c2fd8ce8bb9aa0d0bb634ae08c645d3901e5
2014-06-02 18:48:53 -07:00
Elliott Hughes
987bd5c64f
am 2deef73f
: Merge "Avoid a system call in \'gettid\'."
...
* commit '2deef73fe1e9dbf57b683a15fd1e0c2922e6ecc0':
Avoid a system call in 'gettid'.
2014-06-02 17:48:53 +00:00
Elliott Hughes
2deef73fe1
Merge "Avoid a system call in 'gettid'."
2014-06-02 17:43:27 +00:00
Elliott Hughes
5d9a7ba0dc
Avoid a system call in 'gettid'.
...
System calls can be pretty slow. This is mako, which has one of our
lowest latencies:
iterations ns/op
BM_unistd_getpid 10000000 209
BM_unistd_gettid 200000000 8
Bug: 15297299 (kernel panic from too many gettid calls)
Bug: 15315766 (excessive gettid overhead in liblogd)
Change-Id: I49656c0fc5b5d092390264a59e4f2c0d8a8b1aeb
2014-06-02 10:32:55 -07:00
Dmitriy Ivanov
5f29c32844
am 831405b7
: Merge "Make atexit.dlclose work for glibc"
...
* commit '831405b749d15a11fb947a40d61fd858e952d860':
Make atexit.dlclose work for glibc
2014-05-31 01:31:26 +00:00
Dmitriy Ivanov
831405b749
Merge "Make atexit.dlclose work for glibc"
2014-05-31 01:28:33 +00:00
Dmitriy Ivanov
214e64135e
Make atexit.dlclose work for glibc
...
* build libtest_atexit.so
* remove atexit(NULL) - glibc segfaults on it
Bug: 15350494
Change-Id: I27d79130c32c5691b0e8790a57d92f9710f5bf4a
2014-05-30 18:16:09 -07:00
Christopher Ferris
bd1ec44cc5
am 66b5e6b6
: Merge "Do not run dlclose test on glibc."
...
* commit '66b5e6b609f16062262b777905bdd2305a941596':
Do not run dlclose test on glibc.
2014-05-31 00:43:52 +00:00
Christopher Ferris
66b5e6b609
Merge "Do not run dlclose test on glibc."
2014-05-31 00:41:37 +00:00
Elliott Hughes
d3f2a204b7
am 7a5732bd
: Merge "Add some missing __noreturn attributes."
...
* commit '7a5732bd83c64489b9bd953f49fb6ad3b420126c':
Add some missing __noreturn attributes.
2014-05-30 23:01:01 +00:00
Elliott Hughes
7a5732bd83
Merge "Add some missing __noreturn attributes."
2014-05-30 22:58:42 +00:00
Elliott Hughes
6203e7b853
Add some missing __noreturn attributes.
...
This is more honest, and lets us remove a hack.
Change-Id: I309f064743ded5248573ccafc379f78d417db08d
2014-05-30 15:56:25 -07:00
Elliott Hughes
f306c414eb
am 3a3b27e0
: Merge "x86: stop unwinding past __bionic_clone."
...
* commit '3a3b27e04df395b789b92af3d0ed05d2a0f3bf04':
x86: stop unwinding past __bionic_clone.
2014-05-30 21:43:47 +00:00
Elliott Hughes
3a3b27e04d
Merge "x86: stop unwinding past __bionic_clone."
2014-05-30 21:40:28 +00:00
Christopher Ferris
39036f655a
Do not run dlclose test on glibc.
...
The support library for this test is not built for host by default.
Even if the support library is built, the test segfaults on glibc.
Change-Id: I9cb7a364c59b55d4bf5d8634293037cd9bae020b
2014-05-30 11:23:21 -07:00
Elliott Hughes
ee9d5bdd95
x86: stop unwinding past __bionic_clone.
...
The apparent "previous" frame is on another thread's stack.
Bug: 14270816
Bug: 15195760
Change-Id: I884f370e116203c5fa3b05a75fb8f356537261c4
2014-05-30 11:15:32 -07:00
Christopher Ferris
69371ef1cc
am 1672b056
: Merge "Fix unwinding_through_signal_frame test."
...
* commit '1672b0563693eaaf92db4f304308d456a6102e64':
Fix unwinding_through_signal_frame test.
2014-05-30 03:55:51 +00:00
Christopher Ferris
1672b05636
Merge "Fix unwinding_through_signal_frame test."
2014-05-30 03:53:00 +00:00
Christopher Ferris
d178c83d45
Fix unwinding_through_signal_frame test.
...
I accidentally removed the compilcation of the test implementation file
with special flags needed for the test to work. This change creates the
impl as a library with those flags back.
Bug: 14819262
Change-Id: Ib84fd26a7f4d40a0267d3ed686185b0abc5a3706
2014-05-29 20:00:12 -07:00
Christopher Ferris
e4068e3399
am 94170742
: Merge "Fix x86 cfi directives for syscalls."
...
* commit '941707429d8577e90580277c51ad8a354f664586':
Fix x86 cfi directives for syscalls.
2014-05-30 02:22:34 +00:00
Christopher Ferris
941707429d
Merge "Fix x86 cfi directives for syscalls."
2014-05-30 02:20:27 +00:00
Christopher Ferris
15b91e92a0
Fix x86 cfi directives for syscalls.
...
The syscall generation always used 4 bytes for each push cfi directive.
However, the first push should always use an offset of 8 bytes, each
subsequent push after that is only 4 bytes though.
Change-Id: Ibaabd107f399ef67010b9a08213783957c2f74a9
2014-05-29 19:04:36 -07:00
Elliott Hughes
e1df1eb2c4
am 264d1b83
: Merge "Remove issetugid."
...
* commit '264d1b832510b746c1d45b5efaa33c164d6f8b2b':
Remove issetugid.
2014-05-30 00:10:42 +00:00
Elliott Hughes
264d1b8325
Merge "Remove issetugid."
2014-05-30 00:07:52 +00:00
Christopher Ferris
d853267899
am 5800aab3
: Merge "Fix wmemmove test."
...
* commit '5800aab347a3764f5edb3db0da83b7400ed8426e':
Fix wmemmove test.
2014-05-29 23:43:06 +00:00
Elliott Hughes
b4e099c6f7
Remove issetugid.
...
Bug: 14569474
Change-Id: I752c77ed53c724f144f0b618443eb95e87f2929a
2014-05-29 16:43:01 -07:00
Christopher Ferris
5800aab347
Merge "Fix wmemmove test."
2014-05-29 23:40:39 +00:00
Ben Cheng
a5b0a62dbb
am fd9f07a2
: Merge "Workaround the GCC "(long)fn -> lfn" optimization bug."
...
* commit 'fd9f07a2a2aa6c17b99c4bf9815e380eeac6aa0f':
Workaround the GCC "(long)fn -> lfn" optimization bug.
2014-05-29 23:38:27 +00:00
Ben Cheng
fd9f07a2a2
Merge "Workaround the GCC "(long)fn -> lfn" optimization bug."
2014-05-29 23:33:04 +00:00
Ben Cheng
ff00dc8565
Workaround the GCC "(long)fn -> lfn" optimization bug.
...
Pass "-fno-builtin-rint -fno-builtin-rintl -fno-builtin-rintf" to avoid
generating self recursions in lrint, lrintl, and lrintf.
BUG: 14225968
Change-Id: Iffc4d8f0692580d636a529f4c8aa9a7a10d7acd8
2014-05-29 16:32:00 -07:00
Christopher Ferris
8bf50d5b72
Fix wmemmove test.
...
I accidentally copied over the nul terminator with the test.
Change-Id: I24a9aa05d4fba4f383fa38a3041bb6a6b179130c
2014-05-29 15:44:34 -07:00
Christopher Ferris
9d73fa3fad
am d4fbb1a8
: Merge "Fix dprintf test."
...
* commit 'd4fbb1a8617285ab1d29324308aa016377fc36f3':
Fix dprintf test.
2014-05-29 22:44:25 +00:00
Christopher Ferris
d4fbb1a861
Merge "Fix dprintf test."
2014-05-29 22:41:50 +00:00
Christopher Ferris
84d90bf511
am aa5f32ea
: Merge "Add Aarch64 optimized bzero based on memset"
...
* commit 'aa5f32ea1c8af9776a1c26a027495954c835be55':
Add Aarch64 optimized bzero based on memset
2014-05-29 21:23:16 +00:00