Commit Graph

15636 Commits

Author SHA1 Message Date
Andrew Hsieh
c08fb7eb45 Fix mips64 struct stat64
Cherry pick bionic 86d2feef9f4df517dd5755b39b993bec0c3e1ea5 which
fixes struct stat64.  This may look like breaking mips64 ABI, but mips64
support is stil work in progress post-L

Also see prebuilts/ndk e6639a4c0ba9296a19fd477154aace3585221d9d

Change-Id: Ia8859762191220b9d3127b37970f05594375ca40
2015-01-29 11:39:03 -08:00
Andrew Hsieh
acde2e0dea Merge "Drop clang version check for __builtin_isinf and __builtin_isnan" 2015-01-29 19:29:13 +00:00
Ying Wang
214797acbe Merge "Update the winsdk-tools prerequisites." 2015-01-27 22:00:05 +00:00
Ying Wang
b6549fd3fc Update the winsdk-tools prerequisites.
To build the windows SDK tools, we need only the Linux llvm-tblgen and
clang-tblgen, but not llvm-rs-cc or bcc_compat.
This reduces significantly build time if you want run only "make
winsdk-tools".

Bug: 19149444
Change-Id: I971dd6a6e1a7dd11a968ee8be8cd02085055c262
2015-01-27 12:43:53 -08:00
Elliott Hughes
340e969103 Merge "Include <string.h> for memset." 2015-01-26 21:30:33 +00:00
Elliott Hughes
f16e0fd111 Include <string.h> for memset.
Change-Id: I36bff9268ba1cb50a4be25f1a428082cf854b7be
2015-01-25 08:47:56 -08:00
Dan Albert
6c3911d1a7 Merge "Add support for host coverage." 2015-01-24 21:53:01 +00:00
Dan Albert
b95e3359f6 Merge "Add acov --clean and acov --prep." 2015-01-24 21:52:22 +00:00
Dan Albert
72324d80f6 Add support for host coverage.
The --host flag will pull coverage results from the host output rather
than the target.

Change-Id: I88aac17d23feff22926fbb67416ade3c821b5b6c
2015-01-24 13:47:03 -08:00
Dan Albert
cf347cc5a4 Add acov --clean and acov --prep.
The --clean flag clears ANDROID_PRODUCT_OUT and ANDROID_HOST_OUT of
all coverage files. If a source file that had a coverage notes file
(a .gcno) generated for it is renamed or removed, the build system
will not clean the old file, which means the coverage tool will still
try to find coverage data.

The --prep flag clears just coverage data files. This should be done
before any coverage run, as you don't want old coverage data affecting
your results.

Change-Id: Id68395d19369eba4589daff90461a10cf7aef66d
2015-01-24 13:45:58 -08:00
Andrew Hsieh
6408fa86dc Merge "Refine libportable signal.h on mips." 2015-01-20 18:35:34 +00:00
Andrew Hsieh
3bfe8b3d17 Merge "Fixup typo and disable debug message" 2015-01-20 17:35:12 +00:00
Pen-Yung Yu
a06fa01ac6 Fixup typo and disable debug message
Change-Id: I646b9a52172c300072443eb8a605e1ebf6f840c6
2015-01-20 15:02:17 +08:00
Pen-Yung Yu
166f5daf4b Refine libportable signal.h on mips.
Change-Id: I02edeb28d4606f7706cbd9f933523483ae51abbb
2015-01-20 14:32:57 +08:00
Andrew Hsieh
3598d53b42 Drop clang version check for __builtin_isinf and __builtin_isnan
This CL unconditionally removes the existance of __builtin_isinf and
__builtin_isnan from math.h for clang, because (unlike other math functions)
clang doesn't like those to be declared.

See LLVM bugzilla entry: http://llvm.org/bugs/show_bug.cgi?id=20958

The reason for decorating all math functions with __attribute__((pcs("aapcs")))
is to offer developers the ability to compile their code with hardfp and still
link Android's libm.so which follows softfp calling convention.

Before issue 20958 is fixed, those who want clang to compile their code with
hardfp in NDK has to go all the way hard, ie.
1) LOCAL_CFLAGS += -mhard-float -D_NDK_MATH_NO_SOFTFP=1
   Note that _NDK_MATH_NO_SOFTFP=1 remove __attribute__((pcs("aapcs"))) for all math functions
2) LOCAL_LDLIBS += -lm_hard  # link libm_hard.a recompiled with -mhard-float instead of bionic libm.so

Change-Id: Ie2f95e73e58e1574e8cadbcab92a5209d94448e1
2015-01-16 14:24:04 -08:00
Dan Albert
ec63f63c9a Merge "Add aday, which converts build numbers to dates." 2015-01-07 00:23:43 +00:00
Dan Albert
6313a60dc5 Add aday, which converts build numbers to dates.
Change-Id: I8d4219f961951ef1d84d3027d361378005764ee6
2015-01-06 16:11:06 -08:00
Andrew Hsieh
817e1ef487 Merge "Use define for drm property keys instead of defining as char pointers" 2015-01-05 23:51:01 +00:00
Narayan Kamath
f14a39512a Merge "Remove hardcoded ICU include paths." 2015-01-05 17:46:17 +00:00
Narayan Kamath
15b31c80b9 Remove hardcoded ICU include paths.
ICU exports them using LOCAL_EXPORT_C_INCLUDE_DIRS.

Note that this makefile doesn't building anything
(it's used to test a mk file parser) but it's probably best to
remove all hardcoded references to these paths.

bug: 18581021
Change-Id: Ie3320b405b18a69f35edda510242ef243960b796
2015-01-05 17:44:27 +00:00
Martin Storsjo
2202e9414a Use define for drm property keys instead of defining as char pointers
When defined as char pointers, every compilation unit that includes
the NdkMediaDrm.h header defines a new copy of the same global
variables - leading to linker errors due to multiple definitions
if more than one file includes it.

By using a define, they don't generate any symbols. The NdkMediaFormat.h
header uses extern const char* for a similar set of keys, but that
can't be added after the actual platform has shipped. The other
alternative would be to declare them as static const char*, which
wouldn't generate global symbols, but which could trigger warnings
about unused static symbols instead.

The same change has already been applied in frameworks/av in
https://android-review.googlesource.com/120303.

Change-Id: I14ca81d94309b7f437b3bc144920c48a8b3f0261
2015-01-05 18:52:13 +02:00
Andrew Hsieh
e5ede93a47 Merge "Header/symbol for unknown arch." 2014-12-09 02:50:43 +00:00
WenHan Gu
d7120d4451 Header/symbol for unknown arch.
Change-Id: Ibdbc4cf5408958444ed7a83da6c8bbe478072c6d
2014-12-09 10:50:05 +08:00
Andrew Hsieh
08b75cc3b7 Merge "misc header changes for r10d" 2014-12-08 02:33:22 +00:00
Andrew Hsieh
6aff78a6ce misc header changes for r10d
1. move sgidefs.h to libc/arch-mips.
   See bionic 6e50cb454451916ced315680f6c13dc08cf3959a
2. change type of u_ar0 from "unsigned long" to "struct user_regs_struct*".
   See bionic e03950fa0c5567edf70d011b856a027e03b1c0f7
3. sync fts.h, dlext.h, sys/user.h
4. remove ' from string.h

Change-Id: I2ba58b0df4c655f107ea086efbd0220de2b40e9a
2014-12-05 14:11:54 +08:00
Dan Albert
409b471e48 Merge "Explicitly use an older C++ standard." 2014-11-20 20:58:08 +00:00
Dan Albert
c16f22a622 Explicitly use an older C++ standard.
There's some crufty code in here that cannot be compiled with C++11 (a
lot of implicit conversions that C++11 complains about but C++98
doesn't). Moving this project isn't a high priority, so just use an
older standard.

Bug: 18466763
Change-Id: Iaffc7b2b19bb7ecbdc234782fb9370c641559fac
2014-11-20 10:52:36 -08:00
Dan Albert
9c93ba1d30 Merge "Remove uses of stlport in testrunner." 2014-11-17 22:27:16 +00:00
Dan Albert
24f5368eed Remove uses of stlport in testrunner.
Bug: 15193147
Change-Id: I119846a3423a902e0fd48e30e40788c0946e9b41
2014-11-17 14:12:14 -08:00
Andrew Hsieh
3c864e0473 Merge "Fix headers to be included alone" 2014-11-17 01:56:00 +00:00
Andrew Hsieh
b6f18dba42 Fix headers to be included alone
Change-Id: I7eb9a6ed51b938506d440b91e6b3d42daf817fd7
2014-11-17 09:54:27 +08:00
Andrew Hsieh
397f2ea4e7 Merge "Change sysconf(3) to return long" 2014-11-17 01:49:46 +00:00
Andrew Hsieh
d3ab539366 Change sysconf(3) to return long
See bionic 60d84af1726225320b26683b726e5e735d9d76e8

BUG=18390956

Change-Id: I20c6aa48115610b35e1d59f9f37ce5abbe6ac2f7
2014-11-17 09:48:36 +08:00
Andrew Hsieh
f72859a145 Merge "Add posix_memalign to API16's libc.so, and to stdlib.h for API 16, 17, 18, 19" 2014-11-13 08:32:20 +00:00
Elliott Hughes
27db85ff16 Merge "Made development/scripts/stack work on Mac." 2014-11-08 19:00:32 +00:00
Yang Ni
e4b2a1a959 Made development/scripts/stack work on Mac.
Change-Id: I9be1e50c0a635068017326738af4f5c38dddddab
2014-11-07 09:45:56 -08:00
Dmitriy Ivanov
fc3c82562d am 7d4c9612: Merge changes I0666e671,I90a1aed6
* commit '7d4c96124ca1d9002c73d4b0faf40d03ca30fc77':
  Do not call art-on macro by default.
  Add support for debugging ART to the dalvik.gdb script.
2014-10-31 22:51:40 +00:00
Dmitriy Ivanov
7d4c96124c Merge changes I0666e671,I90a1aed6
* changes:
  Do not call art-on macro by default.
  Add support for debugging ART to the dalvik.gdb script.
2014-10-31 22:46:59 +00:00
Christopher Ferris
5661570266 Do not call art-on macro by default.
If you are debugging a native process, SIGSEGV gets ignored by default.
The gdbclient bash function has been modified to only call the art-on
macro when running gdbclient app_processXX.

Also, print a warning in case someone is trying to debug a native
process using app_process.

Bug: 17815162
Change-Id: I0666e6713b0a03ee713be7827c5b671938f2c263
(cherry picked from commit 436b740b70)
2014-10-31 12:33:57 -07:00
Dave Allison
187be4adee Add support for debugging ART to the dalvik.gdb script.
This adds two commands:

art-on
art-off

To the gdbclient script for debugging ART-based executables in gdb.
The default is 'art-on'

Bug: 17409881
Change-Id: I90a1aed603e50853a40d5f5ec1c9b168dc17ddc7
(cherry picked from commit 22382a4774)
2014-10-31 12:33:52 -07:00
Baligh Uddin
f82c502273 Merge "Import translations. DO NOT MERGE" into stage-aosp-master 2014-10-31 17:10:01 +00:00
Baligh Uddin
1baffe78ce Merge "Import translations. DO NOT MERGE" into stage-aosp-master 2014-10-31 17:01:29 +00:00
Baligh Uddin
72d98225e5 Import translations. DO NOT MERGE
Change-Id: I5874a7acf016c06931e064426cd73b83b79d9c26
Auto-generated-cl: translation import
2014-10-30 15:45:57 -07:00
Andrew Hsieh
fbee7f9704 am f8d4dfbf: Merge "Cherry-pick: Only use <atomic> for C++11 and newer"
* commit 'f8d4dfbff6035e87e941cb75affac86c6d7e144e':
  Cherry-pick: Only use <atomic> for C++11 and newer
2014-10-30 18:41:10 +00:00
Andrew Hsieh
f8d4dfbff6 Merge "Cherry-pick: Only use <atomic> for C++11 and newer" 2014-10-30 18:34:18 +00:00
Baligh Uddin
5fd0e38c0a Import translations. DO NOT MERGE
Change-Id: Iefd0773327c4d0aa246381ea63b94b898cfcc75f
Auto-generated-cl: translation import
2014-10-30 11:17:54 -07:00
Andrew Hsieh
add39dfea3 Cherry-pick: Only use <atomic> for C++11 and newer
See bionic 3ce0769aa5f9a991af1d167f730d987dd002253c
BUG=17736764

Change-Id: If63b6c8394f8574fd198fd24dfc42a3aaba865d5
2014-10-30 10:42:04 -07:00
Andrew Hsieh
21922de299 Add posix_memalign to API16's libc.so, and to stdlib.h for API 16, 17, 18, 19
posix_memalign is added to libc.so for API 17, 18, 19 but prototype
is missing from stdlib.h

Turns out API 16 supports posix_memalign too.  Add it as well

See b.android.com/77861

Change-Id: I940cdc60af9f98490001d67bef32fee556a3ac51
2014-10-23 10:28:17 -07:00
Chenjie Luo
b793668bd8 am 3b0ab876: Merge "Modify testrunner/test_defs.xml to delete obsolete cts tests" into lmp-dev
* commit '3b0ab876fabd488e71c01092810f622508a77d22':
  Modify testrunner/test_defs.xml to delete obsolete cts tests
2014-10-20 20:10:30 +00:00
Chenjie Luo
3b0ab876fa Merge "Modify testrunner/test_defs.xml to delete obsolete cts tests" into lmp-dev 2014-10-20 20:03:14 +00:00