Commit graph

4283 commits

Author SHA1 Message Date
Chih-Hung Hsieh
0b97fd8ace am b699b0ea: Merge "Clang does not recognize -Wno-literal-suffix."
* commit 'b699b0ea58bb41c53cf5236c88d37482063ef438':
  Clang does not recognize -Wno-literal-suffix.
2014-08-26 23:30:49 +00:00
Chih-Hung Hsieh
b699b0ea58 Merge "Clang does not recognize -Wno-literal-suffix." 2014-08-26 23:01:34 +00:00
Chih-Hung Hsieh
4d12b5788d Clang does not recognize -Wno-literal-suffix.
BUG: 17258227
Change-Id: I2d98e68daa780fbe0e127605840ae7edcb4e9880
2014-08-26 15:30:04 -07:00
Calin Juravle
66fb93bbde am 18f23def: Merge "Push ISA features into system properties"
* commit '18f23def0e2cda7934c2aef71e2defc729726913':
  Push ISA features into system properties
2014-08-26 18:07:16 +00:00
Calin Juravle
18f23def0e Merge "Push ISA features into system properties" 2014-08-26 17:52:12 +00:00
Calin Juravle
68b246401d Push ISA features into system properties
We need to know instruction set featues at runtime as well so that the
apps get compiled on target with the proper features. The properties are
read by installd and passed to dex2oat.

Bug: 16716262

(cherry picked from commit 28be9d8884)

Change-Id: I45b363558dea17e9b049e4a83a55990b4911d9d8
2014-08-26 18:47:44 +01:00
Chih-Hung Hsieh
9050234a5e am f1c63b02: Merge "Add GCC only flags to clang .mk files."
* commit 'f1c63b0212f756355e4e189217858b8ae42c4e21':
  Add GCC only flags to clang .mk files.
2014-08-26 02:12:56 +00:00
Chih-Hung Hsieh
0278174764 Add GCC only flags to clang .mk files.
BUG: 17258227
Change-Id: Iec9fdb21a9fa31e18a17704beb27bb493c9b7192
2014-08-25 16:49:53 -07:00
Elliott Hughes
9f6ae4ba53 am d61f0ffd: Merge "HAVE_FUTEX is unused."
* commit 'd61f0ffdfc13ce7b563015ea5fdd4513fb7c9d59':
  HAVE_FUTEX is unused.
2014-08-21 05:08:47 +00:00
Elliott Hughes
0fa6a4063d HAVE_FUTEX is unused.
I missed this the other day.

Change-Id: Ifb6912de3aae6d03593ffb08d8d9555dc9e53f4d
2014-08-20 21:26:19 -07:00
Elliott Hughes
242f054094 am a9ec8350: Merge "Remove HAVE_ANDROID_PTHREAD_SETNAME_NP."
* commit 'a9ec8350b05d3c46656344876cee897616f84f00':
  Remove HAVE_ANDROID_PTHREAD_SETNAME_NP.
2014-08-21 04:24:35 +00:00
Elliott Hughes
3a2fc08ddc am 10f5a420: Merge "HAVE_OPEN_MEMSTREAM is no longer used."
* commit '10f5a420eba1504fda05ff1e6347f4e78bdba2d8':
  HAVE_OPEN_MEMSTREAM is no longer used.
2014-08-21 04:24:34 +00:00
Elliott Hughes
a9ec8350b0 Merge "Remove HAVE_ANDROID_PTHREAD_SETNAME_NP." 2014-08-21 04:20:34 +00:00
Elliott Hughes
10f5a420eb Merge "HAVE_OPEN_MEMSTREAM is no longer used." 2014-08-21 04:16:48 +00:00
Elliott Hughes
70f3f33c2d Remove HAVE_ANDROID_PTHREAD_SETNAME_NP.
https://android-review.googlesource.com/104945 removes the only user.

Change-Id: I303d941036ab889ab747f26561506a5e1c93f0c2
2014-08-20 20:21:29 -07:00
Elliott Hughes
31c667ed3a HAVE_OPEN_MEMSTREAM is no longer used.
Bug: 17164505
Change-Id: I8055e52019d8cdea957d0fb8cbd46ca9b52564e1
2014-08-20 16:17:28 -07:00
Dan Albert
467f8f326b am df73a5fa: Merge "Performance improvement for whole static libs"
* commit 'df73a5fa0a9b44aa3a76dcf1dc7bc6606e7b367a':
  Performance improvement for whole static libs
2014-08-20 21:22:42 +00:00
Dan Albert
e0f44ac25d Performance improvement for whole static libs
Improves performance for LOCAL_WHOLE_STATIC_LIBS by copying the first .a
to the new .a rather than extracting and recreating

Change-Id: Iecdb5e4bb2ce987bb41a70c3393d18a6d72ae689
2014-08-20 13:58:36 -07:00
Elliott Hughes
ccf7c39d62 am 36ba1db4: Merge "Remove unused entries from AndroidConfig.h."
* commit '36ba1db405637ef97276103fced526f5e5d9e354':
  Remove unused entries from AndroidConfig.h.
2014-08-18 19:38:37 +00:00
Dan Albert
473dc3d416 am be0af1f7: Merge "Strip my_clang on assignment."
* commit 'be0af1f7fb4b4a52bf85f3be1e5b1e71ccfbc2c1':
  Strip my_clang on assignment.
2014-08-18 19:24:40 +00:00
Elliott Hughes
e70f4ed1d1 am f8d88579: Merge "Remove HAVE_GETTID."
* commit 'f8d885793dd27a6b19eae59e99d32f2549227511':
  Remove HAVE_GETTID.
2014-08-18 19:24:39 +00:00
Elliott Hughes
36ba1db405 Merge "Remove unused entries from AndroidConfig.h." 2014-08-16 04:09:33 +00:00
Elliott Hughes
032ac32bdb Remove unused entries from AndroidConfig.h.
We should probably try to remove these files completely, but this at
least takes care of the stuff that's completely obsolete.

Change-Id: Ic71b7b491c119963068294e258dc6afe5a45b40d
2014-08-18 12:18:59 -07:00
Dan Albert
be0af1f7fb Merge "Strip my_clang on assignment." 2014-08-16 04:09:33 +00:00
Dan Albert
db905e7b11 Strip my_clang on assignment.
There were a few cases that my_clang was being used without being
stripped. This was causing uses like the following to fail because it
would be partially applied (use clang as the compiler, but don't strip
out incompatible cflags).

    LOCAL_CLANG := true # explanation

To avoid this problem in the future, just strip my_clang when it is
assigned.

Change-Id: I41c2f36a4d4c3aa305a25b4a151c066dad5ffe0f
2014-08-18 11:14:38 -07:00
Elliott Hughes
f8d885793d Merge "Remove HAVE_GETTID." 2014-08-16 04:09:33 +00:00
Elliott Hughes
1ac1401a06 Remove HAVE_GETTID.
Bug: 17048545
Change-Id: Ib5b72ecb451a26cb393147a44601566400ca1dd6
2014-08-18 10:49:12 -07:00
Dmitriy Ivanov
9c178f495e am ce9b58b1: Merge "Add compile time check for statically linked libc"
* commit 'ce9b58b1e432f834e00e84592576f69923781dad':
  Add compile time check for statically linked libc
2014-08-15 22:44:15 +00:00
Dmitriy Ivanov
c15103fa72 Add compile time check for statically linked libc
Bug: 17047392

(cherry picked from commit 655d6851f3)

Change-Id: Ia824137e690b9bca1688a7603254273a737ddcbb
2014-08-15 15:02:09 -07:00
Ying Wang
798c8430d5 am 3c6e4910: Merge "Fix HOST_LIBRARY_PATH."
* commit '3c6e4910a6646e36425e5c6ea4b7cc4bee47b6ca':
  Fix HOST_LIBRARY_PATH.
2014-08-14 20:03:23 +00:00
Ying Wang
66a2aa2180 am 9c80e8a5: Merge "Apply TARGET_GLOBAL_LDFLAGS to transform-bc-to-so"
* commit '9c80e8a531f7bcfe42550aad12d2a8d7d4cb74f5':
  Apply TARGET_GLOBAL_LDFLAGS to transform-bc-to-so
2014-08-14 02:08:06 +00:00
Tim Murray
6830152675 am b771d956: Merge "Add flag to enable default clang builds--USE_CLANG_PLATFORM_BUILD."
* commit 'b771d95605a9076591d769edc36d6a544c3639be':
  Add flag to enable default clang builds--USE_CLANG_PLATFORM_BUILD.
2014-08-13 19:34:37 +00:00
Ying Wang
bfd651600c Apply TARGET_GLOBAL_LDFLAGS to transform-bc-to-so
This fixes mips unbundled build since we switched to mips64el toolchain
for both mips and mips64.
TODO: multilib build support.

Change-Id: I7add92d2cecfc3ab739785ceef6700240a25093a
2014-08-13 19:03:16 -07:00
Tim Murray
06659bc9b7 Add flag to enable default clang builds--USE_CLANG_PLATFORM_BUILD.
bug 17007253

Change-Id: Ib11c017bf8aee384e6780e2a1252221fbff3327a
2014-08-13 12:18:30 -07:00
Ying Wang
5bac962903 Fix HOST_LIBRARY_PATH.
Since we switched to $(HOST_OUT)/lib64 for 64-bit libraries and
$(HOST_OUT)/lib for 32-bit libraries.

Change-Id: Ie43bc03c37e2ac8542412a7543a6af5d60c6f725
2014-08-14 12:48:25 -07:00
Andreas Gampe
f07113deea am 1be3336d: Merge "Add a WITH_DEXOPT_BOOT_IMG_ONLY configuration option."
* commit '1be3336d1ca3423cbc7e52c53125fcd076103e61':
  Add a WITH_DEXOPT_BOOT_IMG_ONLY configuration option.
2014-08-11 19:52:59 +00:00
Andreas Gampe
1be3336d1c Merge "Add a WITH_DEXOPT_BOOT_IMG_ONLY configuration option." 2014-08-11 18:05:20 +00:00
Alex Light
440cc769a3 Add a WITH_DEXOPT_BOOT_IMG_ONLY configuration option.
If WITH_DEXOPT_BOOT_IMG_ONLY=true and WITH_DEXPREOPT=true then we will
only preopt the boot.art and boot.oat files, leaving everything else to
be compiled at first boot. This has fast startup times of WITH_DEXPREOPT
but has a smaller space usage and allows one to update the non-image
parts of /system without reflashing.

Bug: 16938924

Change-Id: Ib366b6b5ad80f7078f01bf51f9fbc29ea7e5d777
2014-08-11 16:40:23 +00:00
Ying Wang
8ac188ff0e am 6dbbb159: Merge "Consistent use of USE_MINGW"
* commit '6dbbb15997d2cf032b098a33f65387fcd36d478a':
  Consistent use of USE_MINGW
2014-08-08 03:17:21 +00:00
Dan Albert
868b22dd27 am 76c942c1: Merge "Fix Windows SDK build."
* commit '76c942c1645445a7b3f8b951db70f02cee270326':
  Fix Windows SDK build.
2014-08-08 01:39:29 +00:00
Dan Albert
e99d8947c0 am cbc742a1: Merge "Inhibit implicit -Bsymolic in -shared."
* commit 'cbc742a1b7202dfac78795469d04c02cd323e064':
  Inhibit implicit -Bsymolic in -shared.
2014-08-07 23:30:37 +00:00
Dan Albert
897cd3d494 am afae9fd8: Merge "Fix uses of -fPIC and -fPIE."
* commit 'afae9fd8ddf679344b456cc3ab339d9f330557a5':
  Fix uses of -fPIC and -fPIE.
2014-08-07 23:30:36 +00:00
Ying Wang
594a10ae77 Consistent use of USE_MINGW
Change-Id: I05e212e5a99639d0196006b9c2ec35072c54f399
2014-08-07 20:08:04 -07:00
Dan Albert
95994def18 Fix Windows SDK build.
Change-Id: Ia2a318957aa525f0e72b556a693a20f513146b64
2014-08-07 18:29:11 -07:00
Dan Albert
4803ce2696 Fix uses of -fPIC and -fPIE.
We've been using -fPIC and -fPIE together in the global cflags all this
time. These options are incompatible. The only reason we haven't been
hit by this before is because of the forced -Bsymbolic in GCC. To fix
this, pass -fpic when compiling objects for shared libraries and -fpie
when compiling objects for executables. For static libraries, also use
-fpic. We have to do this because static libraries might be included in
either a shared library or an executable. Code compiled with -fpie
cannot be included in a shared library, but code compiled with -fpic
may be included in an executable.

We've also been using -fpic and -fPIC together. These are different
options, and only the latter will take effect.
http://stackoverflow.com/a/967010

The final thing this fixes is that we had -f(PIC|PIE) flags being passed
to link commands. These are compile time flags, and don't do anything at
link time.

Bug: 16823325
Change-Id: Ic76f47e63dc2c81b7e1a8058bae1b3dc8565d606
2014-08-07 10:20:58 -07:00
Dan Albert
b6bb71b85d Inhibit implicit -Bsymolic in -shared.
Bug: 16853291

Change-Id: Id70488b077256a70137c4417f21be2c2d1d4341c
2014-08-07 15:43:16 -07:00
Brian Carlstrom
557e7e5413 am ce06199a: Merge "Make system use patchoat to relocate during runtime."
* commit 'ce06199a047f81d6afe522ab4e6f489deecb46f3':
  Make system use patchoat to relocate during runtime.
2014-08-05 17:51:10 +00:00
Alex Light
ce090d3f45 Make system use patchoat to relocate during runtime.
Change DexPreOpt to include patch information of all compiled files so
we can relocate at runtime.

Bug: 15358152

Change-Id: Ibe92d8b55a24bbf718b0416a21b76e5df7a2de26
2014-08-05 10:22:09 -07:00
Brian Carlstrom
9b80095e6c am 430ec575: Merge "Move from dalvik.vm.image-dex2oat-flags to dalvik.vm.dex2oat-filter [build]"
* commit '430ec575cd40672aab8394c31c7e45294ee302e5':
  Move from dalvik.vm.image-dex2oat-flags to dalvik.vm.dex2oat-filter [build]
2014-08-04 18:33:00 +00:00
Brian Carlstrom
430ec575cd Merge "Move from dalvik.vm.image-dex2oat-flags to dalvik.vm.dex2oat-filter [build]" 2014-08-01 01:50:59 +00:00