Commit Graph

7460 Commits

Author SHA1 Message Date
Elliott Hughes
41ae96a1cc am 4bc229eb: am 4449fe96: Merge "Fix 32-bit mmap/mmap64 handling of negative offsets."
* commit '4bc229eb0228d0cfb5b58e87124e5473f3513f06':
  Fix 32-bit mmap/mmap64 handling of negative offsets.
2014-01-28 01:11:49 +00:00
Elliott Hughes
f025dd96af am 64989588: am 2d7f9616: am 652dd519: Merge "Remove libthread_db from bionic."
* commit '64989588ba93d9e666d50179fc6e879e4b7c926f':
  Remove libthread_db from bionic.
2014-01-28 01:04:54 +00:00
Elliott Hughes
4bc229eb02 am 4449fe96: Merge "Fix 32-bit mmap/mmap64 handling of negative offsets."
* commit '4449fe9675671264746af4876bd959af8e9fee82':
  Fix 32-bit mmap/mmap64 handling of negative offsets.
2014-01-28 01:03:26 +00:00
Elliott Hughes
64989588ba am 2d7f9616: am 652dd519: Merge "Remove libthread_db from bionic."
* commit '2d7f9616fda2366845af3443c15eb3405eff9b6e':
  Remove libthread_db from bionic.
2014-01-28 00:59:14 +00:00
Elliott Hughes
4449fe9675 Merge "Fix 32-bit mmap/mmap64 handling of negative offsets." 2014-01-28 00:58:51 +00:00
Elliott Hughes
2d7f9616fd am 652dd519: Merge "Remove libthread_db from bionic."
* commit '652dd5196df87bdeef7bff452f1a4857a96e3133':
  Remove libthread_db from bionic.
2014-01-28 00:43:45 +00:00
Elliott Hughes
431166d995 Fix 32-bit mmap/mmap64 handling of negative offsets.
We don't actually need to worry about sign extension if we reject
negative values ourselves. Previously it was possible to come up
with negative but aligned values that we would pass to the kernel;
in the case of mmap (as opposed to mmap64) we'd incorrectly turn
those into large positive offsets.

Change-Id: I2aa583e0f892d59bb77429aea8730b72db32dcb0
2014-01-27 16:36:56 -08:00
Elliott Hughes
652dd5196d Merge "Remove libthread_db from bionic." 2014-01-28 00:24:57 +00:00
Elliott Hughes
d373d0c038 Remove libthread_db from bionic.
The NDK statically links its own copy into gdb.

Bug: 11882807
Change-Id: I0c7ed8761c32df3cc3644258551bc7d2e263f47b
2014-01-27 15:45:06 -08:00
Elliott Hughes
48c43edcd6 am 240a5214: am cbb439ad: am ba0c668f: Merge "bionic: Do not use magic number for portability"
* commit '240a5214e9159a3ace09f0ea9f9ceb37a2135a4c':
  bionic: Do not use magic number for portability
2014-01-27 23:09:09 +00:00
Elliott Hughes
240a5214e9 am cbb439ad: am ba0c668f: Merge "bionic: Do not use magic number for portability"
* commit 'cbb439addbe9f04de28f291ebd163575933da177':
  bionic: Do not use magic number for portability
2014-01-27 23:05:21 +00:00
Elliott Hughes
cbb439addb am ba0c668f: Merge "bionic: Do not use magic number for portability"
* commit 'ba0c668feca851fd52359bee4174a232f27697b4':
  bionic: Do not use magic number for portability
2014-01-27 14:57:53 -08:00
Elliott Hughes
ba0c668fec Merge "bionic: Do not use magic number for portability" 2014-01-27 22:52:07 +00:00
Qiming Shi
4041b13c20 bionic: Do not use magic number for portability
Do not use the magic number 0xFFFFFFFFU to represent the max value of an address
as it's not correct on 64bit platform. We should use UINTPTR_MAX instead.

Change-Id: I1fc6f5864a651b2eddea2333cb0788f9d9223270
Signed-off-by: Qiming Shi <qiming.shi@intel.com>
Signed-off-by: Weiwu Chen <weiwu.chen@intel.com>
2014-01-27 14:51:07 -08:00
Elliott Hughes
4332c9ebba am e528d178: am f3ea7917: am 6f23ce36: Merge "Remove __STDC_FORMAT_MACROS and __STDC_LIMIT_MACROS guards (and fix SIZE_MAX for LP64)."
* commit 'e528d1787c80d4d6879c8fafa5487f9fd6ce4a29':
  Remove __STDC_FORMAT_MACROS and __STDC_LIMIT_MACROS guards (and fix SIZE_MAX for LP64).
2014-01-25 01:38:13 +00:00
Elliott Hughes
e528d1787c am f3ea7917: am 6f23ce36: Merge "Remove __STDC_FORMAT_MACROS and __STDC_LIMIT_MACROS guards (and fix SIZE_MAX for LP64)."
* commit 'f3ea791757dacdab64c870ccfb820e3e36a8d854':
  Remove __STDC_FORMAT_MACROS and __STDC_LIMIT_MACROS guards (and fix SIZE_MAX for LP64).
2014-01-25 01:35:03 +00:00
Elliott Hughes
f3ea791757 am 6f23ce36: Merge "Remove __STDC_FORMAT_MACROS and __STDC_LIMIT_MACROS guards (and fix SIZE_MAX for LP64)."
* commit '6f23ce36ce580da3c1419856c71d7426dd64748d':
  Remove __STDC_FORMAT_MACROS and __STDC_LIMIT_MACROS guards (and fix SIZE_MAX for LP64).
2014-01-24 17:30:03 -08:00
Elliott Hughes
6f23ce36ce Merge "Remove __STDC_FORMAT_MACROS and __STDC_LIMIT_MACROS guards (and fix SIZE_MAX for LP64)." 2014-01-25 01:25:16 +00:00
Ying Wang
7d6ae1e11e am cd66256a: am 22750476: am b32cc032: Merge "Use arch-specific variable to set up the x86 ld flags."
* commit 'cd66256a1f4fbcd192d033929c369bd54065e696':
  Use arch-specific variable to set up the x86 ld flags.
2014-01-25 01:03:36 +00:00
Ying Wang
cd66256a1f am 22750476: am b32cc032: Merge "Use arch-specific variable to set up the x86 ld flags."
* commit '227504768413a7802efcea3c80ee8fb6d78af9c5':
  Use arch-specific variable to set up the x86 ld flags.
2014-01-25 01:00:25 +00:00
Ying Wang
2275047684 am b32cc032: Merge "Use arch-specific variable to set up the x86 ld flags."
* commit 'b32cc032030e7a9f50b28d6dba5a40a38e6e76cf':
  Use arch-specific variable to set up the x86 ld flags.
2014-01-24 16:55:33 -08:00
Ying Wang
b32cc03203 Merge "Use arch-specific variable to set up the x86 ld flags." 2014-01-25 00:50:54 +00:00
Ying Wang
1682c63d77 Use arch-specific variable to set up the x86 ld flags.
Bug: 11654773
Change-Id: I9e9075bac1303cfa39b0f717dd74625ce1dd5fa5
2014-01-24 16:50:16 -08:00
Elliott Hughes
e2a292d278 Remove __STDC_FORMAT_MACROS and __STDC_LIMIT_MACROS guards (and fix SIZE_MAX for LP64).
The various committees decided that everyone should get all these macros,
all the time.

Bug: 12708004
Change-Id: Ib56010dcba9b0656e5701546fefb7f78dc0bf916
2014-01-24 16:38:07 -08:00
Ben Cheng
d1e32e1c35 am 0bae4c4d: am 50228472: am 5acce960: Merge "Add all implicitly loaded symbols from libgcc.a into libgcc_compat.c."
* commit '0bae4c4d41acffa091680a5499e0381e1ea70f12':
  Add all implicitly loaded symbols from libgcc.a into libgcc_compat.c.
2014-01-25 00:26:01 +00:00
Ben Cheng
0bae4c4d41 am 50228472: am 5acce960: Merge "Add all implicitly loaded symbols from libgcc.a into libgcc_compat.c."
* commit '502284727b0e856442c95713ba61a16e7d86a5c1':
  Add all implicitly loaded symbols from libgcc.a into libgcc_compat.c.
2014-01-25 00:24:08 +00:00
Ben Cheng
502284727b am 5acce960: Merge "Add all implicitly loaded symbols from libgcc.a into libgcc_compat.c."
* commit '5acce960f40f51107301398f9cadff680a634951':
  Add all implicitly loaded symbols from libgcc.a into libgcc_compat.c.
2014-01-24 16:19:39 -08:00
Ben Cheng
5acce960f4 Merge "Add all implicitly loaded symbols from libgcc.a into libgcc_compat.c." 2014-01-25 00:13:10 +00:00
Ben Cheng
62ffe14a7e Add all implicitly loaded symbols from libgcc.a into libgcc_compat.c.
Change-Id: I0e66a73e849a01817d016a688d7291c2fb604e48
2014-01-24 15:20:11 -08:00
Colin Cross
771524267b am 3aa1e605: am 35377004: am 513f83bb: Merge "bionic: rename aarch64 target to arm64"
* commit '3aa1e605ea1167e59976bf82922fd06c728b518b':
  bionic: rename aarch64 target to arm64
2014-01-24 21:24:50 +00:00
Colin Cross
3aa1e605ea am 35377004: am 513f83bb: Merge "bionic: rename aarch64 target to arm64"
* commit '353770042f38b0d377425f036979f7b90ac7429d':
  bionic: rename aarch64 target to arm64
2014-01-24 20:44:29 +00:00
Colin Cross
353770042f am 513f83bb: Merge "bionic: rename aarch64 target to arm64"
* commit '513f83bb7f6961d60eb10d2ab14fb31fed190bce':
  bionic: rename aarch64 target to arm64
2014-01-24 12:38:53 -08:00
Colin Cross
513f83bb7f Merge "bionic: rename aarch64 target to arm64" 2014-01-24 20:33:23 +00:00
Ben Cheng
af0debbfc7 am cc70de8f: am 0661bbe2: am 69d242d2: Merge "Re-export libgcc\'s __aeabi_uidivmod and __popcount_tab"
* commit 'cc70de8fc3726cf8cc242a4dcb80a7f5af50f4b1':
  Re-export libgcc's __aeabi_uidivmod and __popcount_tab
2014-01-24 18:25:55 +00:00
Ben Cheng
cc70de8fc3 am 0661bbe2: am 69d242d2: Merge "Re-export libgcc\'s __aeabi_uidivmod and __popcount_tab"
* commit '0661bbe2570ff52382552d9c404159f7651101f3':
  Re-export libgcc's __aeabi_uidivmod and __popcount_tab
2014-01-24 18:22:48 +00:00
Ben Cheng
0661bbe257 am 69d242d2: Merge "Re-export libgcc\'s __aeabi_uidivmod and __popcount_tab"
* commit '69d242d21cb3c40f241eaf7aceecc27bfb9385fa':
  Re-export libgcc's __aeabi_uidivmod and __popcount_tab
2014-01-24 10:17:55 -08:00
Ben Cheng
69d242d21c Merge "Re-export libgcc's __aeabi_uidivmod and __popcount_tab" 2014-01-24 18:11:48 +00:00
Bernhard Rosenkränzer
f38fb19d9d Re-export libgcc's __aeabi_uidivmod and __popcount_tab
This is required to make the Nexus 10 graphics driver work on a system
compiled with gcc 4.9.

Change-Id: If3f3d488652a736d9ea3e583548d74fae3ffa902
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
2014-01-24 12:57:13 +01:00
Colin Cross
d1973ca513 bionic: rename aarch64 target to arm64
Rename aarch64 build targets to arm64.  The gcc toolchain is still
aarch64.

Change-Id: Ia92d8a50824e5329cf00fd6f4f92eae112b7f3a3
2014-01-23 18:35:39 -08:00
Ying Wang
0695aa7255 Use arch-specific variable to set up the x86 ld flags.
Bug: 11654773
Change-Id: I9e9075bac1303cfa39b0f717dd74625ce1dd5fa5
2014-01-23 15:15:28 -08:00
Elliott Hughes
232e52e90b am 17758106: am 06d38ccd: am 5b4884fa: Merge "Add "__noreturn" to assert and assert2"
* commit '17758106e80d9ced66c7cfdae0b0331ebd7696b7':
  Add "__noreturn" to assert and assert2
2014-01-15 21:41:21 +00:00
Elliott Hughes
17758106e8 am 06d38ccd: am 5b4884fa: Merge "Add "__noreturn" to assert and assert2"
* commit '06d38ccda067428e0fbd448ad21cd8140fbecc11':
  Add "__noreturn" to assert and assert2
2014-01-15 21:39:12 +00:00
Elliott Hughes
06d38ccda0 am 5b4884fa: Merge "Add "__noreturn" to assert and assert2"
* commit '5b4884fac90753c68d401de73036c2de919958eb':
  Add "__noreturn" to assert and assert2
2014-01-15 13:32:40 -08:00
Elliott Hughes
5b4884fac9 Merge "Add "__noreturn" to assert and assert2" 2014-01-15 21:26:47 +00:00
Vadim Markovtsev
323d4b6f68 Add "__noreturn" to assert and assert2
These functions should print assertion violation messages and then
call abort(). They do really not return control flow afterwards.
Consider the declaration of the similar __assert_fail from glibc:

extern void __assert_fail (const char *__assertion,
                           const char *__file,
			   unsigned int __line,
                           const char *__function)
     __THROW __attribute__ ((__noreturn__));

Bionic has __noreturn defined in sys/cdefs.h to be that GNU
noreturn attribute.

This patch has a practical value. Consider the following function:

void check(void* ptr) {
  assert(ptr != NULL);
}

Without this patch applied, gcc (and presumably clang) shows even in
debug mode:

warning: unused parameter 'ptr' [-Wunused-parameter]

In release mode, NDEBUG is defined and assert() becomes a no-op, as
one should expect. Thus, the warning is shown correctly then.

Another code sample:

float array[2];
int i = 3;
...
assert(i < 2);
array[i] = 0;

gcc says,

warning: array subscript is below array bounds [-Warray-bounds]

In other words, without noreturn attribute, assertions do not
allow a compiler's static analyzer to properly understand
the preconditions.

Change-Id: I3be92e99787c528899cf243ed448c4730c00c45b
Signed-off-by: Vadim Markovtsev <gmarkhor@gmail.com>
2014-01-15 07:32:52 +00:00
Elliott Hughes
1ed0e5de75 am 530093e1: am 22d8bd9b: am 12159420: Merge "Fix libdl build warnings, turn on -Werror."
* commit '530093e1fd538debdfa06d8c04c8cd824912b1c7':
  Fix libdl build warnings, turn on -Werror.
2014-01-15 02:48:31 +00:00
Elliott Hughes
63ccebf3f3 am e83c98e6: am a17b7ba9: am c8d41263: Merge "Move _thread_created_hook to where it belongs."
* commit 'e83c98e6f7575000df7e36803c5349249f8aa982':
  Move _thread_created_hook to where it belongs.
2014-01-15 02:48:31 +00:00
Elliott Hughes
530093e1fd am 22d8bd9b: am 12159420: Merge "Fix libdl build warnings, turn on -Werror."
* commit '22d8bd9b93223634e2d0bf5ec1cbddd888e96136':
  Fix libdl build warnings, turn on -Werror.
2014-01-15 02:45:14 +00:00
Elliott Hughes
e83c98e6f7 am a17b7ba9: am c8d41263: Merge "Move _thread_created_hook to where it belongs."
* commit 'a17b7ba95d71d59ac5e04d2f01bb1839602912f9':
  Move _thread_created_hook to where it belongs.
2014-01-15 02:45:14 +00:00
Elliott Hughes
22d8bd9b93 am 12159420: Merge "Fix libdl build warnings, turn on -Werror."
* commit '12159420e1654f6896993eda39aea8b5e5586f80':
  Fix libdl build warnings, turn on -Werror.
2014-01-14 18:38:16 -08:00