summaryrefslogtreecommitdiffstats
path: root/build/Android.common_build.mk
Commit message (Collapse)AuthorAgeFilesLines
* art: Disable ART_HOST_CLANG on darwin builds.Adnan Begovic2016-01-111-0/+6
| | | | Change-Id: I9d34cfea13fe4e6902e02cfb9d2de7610ced878c
* Art: disable host clang by defaultDave Daynard2016-01-071-1/+1
| | | | | | | | | Otherwise my builds crash and burn because I don't know how to set up host clang properly and honestly, do we really need "better warnings" for ART? I mean, this is one part of the OS that for the most part we are not going to fuck with Change-Id: Ie45a6926510ec12aedc3cfac79d00ee842a7778b
* ART: Disable Clang for armAndreas Gampe2015-11-061-1/+2
| | | | | | | Disable Clang for arm32 until a fix for the issue is found. Bug: 25130937 Change-Id: Ia33f387b89ac8d1e8eac9a2782c45f038b9e8a1a
* Fix valgrind includesDmitriy Ivanov2015-05-271-2/+2
| | | | | | | | | | | external/valgrind structure has been changed to reflect upstream projects struture. Making corresponding changes to art includes. Bug: http://b/21471495 Change-Id: I2434a270f88502528df82c4820afedb002b65b8d (cherry picked from commit 6130f739d8f35e01037ba5c3ec5e5a1057900479)
* Undo arm64 workaround.Chih-Hung Hsieh2015-05-151-4/+0
| | | | | | | | Now we have new llvm to compile art for arm64 without -fno-vectorize. BUG: 21080674 Change-Id: Id1b3a88ab9d4cf78b7f0dfd8cb435ed6e7ab7cb2 (cherry picked from commit b6cee946d44dc1e961c9656830b567e38104f896)
* Re-enable clang for Mips/Mips64 targets.Duane Sand2015-05-011-11/+2
| | | | | | | | | | | The build-time errors described in https://android-review.googlesource.com/#/c/120512 are no longer happening. BUG: 18807290 BUG: 18789639 Change-Id: I195bbb7d102fecd6a6e6a3357b0863dd6fddb01f
* Replace String CharArray with internal uint16_t array.Jeff Hao2015-04-271-0/+1
| | | | | | | | | | | | Summary of high level changes: - Adds compiler inliner support to identify string init methods - Adds compiler support (quick & optimizing) with new invoke code path that calls method off the thread pointer - Adds thread entrypoints for all string init methods - Adds map to verifier to log when receiver of string init has been copied to other registers. used by compiler and interpreter Change-Id: I797b992a8feb566f9ad73060011ab6f51eb7ce01
* ART: Turn off missing-noreturn for MacAndreas Gampe2015-04-061-2/+8
| | | | | | Too much stuff unimplemented and causing warnings. Change-Id: I43bae875f1eca3cc24e03b0e7d6fdfd2adae0cbd
* ART: Enable more Clang warningsAndreas Gampe2015-04-061-0/+3
| | | | Change-Id: Ie6aba02f4223b1de02530e1515c63505f37e184c
* ART: Enable Clang's -WdeprecatedAndreas Gampe2015-04-061-0/+3
| | | | | | | | | Replace throw() with noexcept. Add default copy constructors and copy assignment constructors for cases with destructors, as the implicit definition is deprecated. Change-Id: Ice306a3f510b072b00bec4d4360f7c8055135c9d
* ART: Add Clang's -Wused-but-marked-unusedAndreas Gampe2015-04-031-0/+4
| | | | | | Add detection of wrong unused annotations. Fix our codebase. Change-Id: I85cc20f2eac71c1ec6c5c7cd6efb08454a629634
* Make it possible to enable tlab with a build parameter.Hiroshi Yamauchi2015-03-201-0/+4
| | | | | | For testing. Change-Id: I4d06a4db733b7fa09105f068028483cf88db7925
* Remove ART_SMALL_MODE ifdefs.Jeff Hao2015-03-021-16/+0
| | | | | | | | WITH_ART_SMART_MODE now sets --compiler-filter options instead. Has a corresponding change to /build Bug: 19460766 Change-Id: I295ebbd49caa5341834141f7c2bbf8df830131ed
* Fix method_verifier_test with the SS collector.Hiroshi Yamauchi2015-02-251-2/+2
| | | | | | | | Rename art_default_gc_type to ART_DEFAULT_GC_TYPE. Bug: 19514492 Change-Id: I3c7920e7a84327c5908462e51e21199b89fb187d
* Merge "Revert "Revert "Add JIT"""Mathieu Chartier2015-02-251-0/+12
|\
| * Revert "Revert "Add JIT""Mathieu Chartier2015-02-241-0/+12
| | | | | | | | | | | | | | | | Added missing EntryPointToCodePointer. This reverts commit a5ca888d715cd0c6c421313211caa1928be3e399. Change-Id: Ia74df0ef3a7babbdcb0466fd24da28e304e3f5af
* | ART: Add -WunusedAndreas Gampe2015-02-241-0/+1
|/ | | | | | | Until the global CFLAGS are fixed, add Wunused. Fix declarations in the optimizing compiler. Change-Id: Ic4553f08e809dc54f3d82af57ac592622c98e000
* Revert "Add JIT"Nicolas Geoffray2015-02-241-12/+0
| | | | | | | | | | | | | | | Sorry, run-test crashes on target: 0-05 12:15:51.633 I/DEBUG (27995): Abort message: 'art/runtime/mirror/art_method.cc:349] Check failed: PcIsWithinQuickCode(reinterpret_cast<uintptr_t>(code), pc) java.lang.Throwable java.lang.Throwable.fillInStackTrace() pc=71e3366b code=0x71e3362d size=ad000000' 10-05 12:15:51.633 I/DEBUG (27995): r0 00000000 r1 0000542b r2 00000006 r3 00000000 10-05 12:15:51.633 I/DEBUG (27995): r4 00000006 r5 b6f9addc r6 00000002 r7 0000010c 10-05 12:15:51.633 I/DEBUG (27995): r8 b63fe1e8 r9 be8e1418 sl b6427400 fp b63fcce0 10-05 12:15:51.633 I/DEBUG (27995): ip 0000542b sp be8e1358 lr b6e9a27b pc b6e9c280 cpsr 40070010 10-05 12:15:51.633 I/DEBUG (27995): Bug: 17950037 This reverts commit 2535abe7d1fcdd0e6aca782b1f1932a703ed50a4. Change-Id: I6f88849bc6f2befed0c0aaa0b7b2a08c967a83c3
* Add JITMathieu Chartier2015-02-231-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently disabled by default unless -Xjit is passed in. The proposed JIT is a method JIT which works by utilizing interpreter instrumentation to request compilation of hot methods async during runtime. JIT options: -Xjit / -Xnojit -Xjitcodecachesize:N -Xjitthreshold:integervalue The JIT has a shared copy of a compiler driver which is accessed by worker threads to compile individual methods. Added JIT code cache and data cache, currently sized at 2 MB capacity by default. Most apps will only fill a small fraction of this cache however. Added support to the compiler for compiling interpreter quickened byte codes. Added test target ART_TEST_JIT=TRUE and --jit for run-test. TODO: Clean up code cache. Delete compiled methods after they are added to code cache. Add more optimizations related to runtime checks e.g. direct pointers for invokes. Add method recompilation. Move instrumentation to DexFile to improve performance and reduce memory usage. Bug: 17950037 Change-Id: Ifa5b2684a2d5059ec5a5210733900aafa3c51bca
* Go back to -O2.Nicolas Geoffray2015-02-031-1/+1
| | | | | | Stack space suffers otherwise. Change-Id: I890a9714acd8500981c3d41df0f5f7fd63d48f8f
* ART: Fix assembler_thumb_testAndreas Gampe2015-02-021-1/+1
| | | | | | | | | Fix the inconsistent calls. This was bad practice, requiring that shape meant arm32 and thumb were not interchangeable. Also fix an error in the assembler itself for tst and teq. Change-Id: I50242801002aa81cc17bfaa53eb8b7c1d9488fbc
* Add options for building/testing with coverage.Dan Albert2015-01-301-3/+7
| | | | | | | | | | | acov --clean mm -B NATIVE_COVERAGE=true ART_COVERAGE=true test-art-host acov --host -B is needed because you need to be sure you rebuild *all* of ART with coverage. Change-Id: Ib94ef610bd1b44dc45624877710ed733051b7a50
* ART: Clean up some build flagsAndreas Gampe2015-01-271-4/+1
| | | | | | Remove some no-longer necessary build flags. Change-Id: Iea85a21689c20931b88d0e84b84410652b66b38d
* Make it possible to enable read barriers at build time.Hiroshi Yamauchi2015-01-231-0/+4
| | | | | Bug: 12687968 Change-Id: I26ec55063c2d5ff0181e628c1002bfa609815b29
* ART: Mips64 runtime supportAndreas Gampe2015-01-151-0/+2
| | | | | | Interpret-only Mips64 runtime support. Change-Id: Iee22d0c8c77105d9b2f03a67dc4e09957fe0ab0a
* ART: Only give Clang warning when Clang is activeAndreas Gampe2015-01-131-1/+1
| | | | | | | Do not pollute output with Clang warning if we were supposed to compile with Clang. Change-Id: I1ee764dcfe0581e09a350cb01fdf0ba06dd18b56
* Do not use clang for mips target.Chih-Hung Hsieh2015-01-071-1/+10
| | | | | | | | | | | Clang assembler cannot compile some inlined assembly code in valgrind_malloc_space-inl.h:192:5: error: used $at without ".set noat" However, clang generated assembly code for runtime/mirror/array.cc cannot be compiled by gas. BUG: 18789639 BUG: 18807290 Change-Id: Ifdeb3c50f11cefc7f0d62c1d36fdd1f8b9344fb4
* ART: Fix Clang CFLAGS inclusionAndreas Gampe2015-01-071-8/+10
| | | | | | | Only include the CFLAGS if Clang is not explicitly disabled for the architecture. Change-Id: Ic63d7c8018f633a9b20a4ff9285d6380426017a5
* Merge "Add a new imgdiag tool to diff boot.art/core.art against a process"Igor Murashkin2014-12-171-3/+4
|\
| * Add a new imgdiag tool to diff boot.art/core.art against a processIgor Murashkin2014-12-161-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Analyze the dirty memory pages of a running process per-object, this allows is to to fine-tune the dirty object binning algorithm in image writer. Also: * Factor out oatdump command line parsing code into cmdline.h * Factor out common build rules for building variations of binaries * Add a gtest for imgdiag Bug: 17611661 Change-Id: I3ac852a0d223af66f6d59ae5dbc3df101475e3d0
* | Merge "Revert "Fix VM-less builds.""Ying Wang2014-12-161-13/+8
|\ \ | |/ |/|
| * Revert "Fix VM-less builds."Ying Wang2014-12-081-13/+8
| | | | | | | | | | | | | | This reverts commit 62753c474b83546f5f40ca114530a3f377a51bbc. Bug: 18465297 Change-Id: I800198949e3837f8dab3ad966aeb7dac5d7911c0
* | Remove portable.Elliott Hughes2014-12-121-36/+0
| | | | | | | | Change-Id: I3bf3250fa866fd2265f1b115d52fa5dedc48a7fc
* | Make it possible to enable heap poisoning via make variable.Hiroshi Yamauchi2014-12-081-0/+4
|/ | | | | | | If ART_HEAP_POISONING=true, build with heap poisoning enabled. Bug: 8367515 Change-Id: I818e86047e6dd99b5bc9920713ef943a65b677e6
* Merge "Fix VM-less builds."David 'Digit' Turner2014-12-031-8/+13
|\
| * Fix VM-less builds.David 'Digit' Turner2014-12-031-8/+13
| | | | | | | | | | | | | | | | | | | | | | This patch modifies Android.common_build.mk to avoid breaking the build when trying to generate a system image that doesn't include a VM (which is useful for low-level emulator feature testing, not general Android development). BUG=18581643 Change-Id: Ib75ebf14d3e9c8fc2ac591c7edd2ab4d6ff2ca89
* | Don't force color diagnostics.Dan Albert2014-12-021-4/+1
|/ | | | | | | Clang does this automatically for you now, and forcing it causes ugly (and difficult to parse) error diagnostics for non-color terminals. Change-Id: I5ceb673ad50ad99cb78c733d18ac7dbfe8f978d3
* Vixl: Update the VIXL interface to VIXL 1.7 and enable VIXL debug.Serban Constantinescu2014-11-281-0/+1
| | | | | | | | This patch updates the interface to VIXL 1.7 and enables the debug version of VIXL when ART is built in debug mode. Change-Id: I443fb941bec3cffefba7038f93bb972e6b7d8db5 Signed-off-by: Serban Constantinescu <serban.constantinescu@arm.com>
* Add a way to change the IMT sizeMathieu Chartier2014-11-261-0/+8
| | | | | | | | | Useful for having smaller imts on memory constrainted devices. Setting ART_IMT_SIZE=x will change the size of the IMT. (cherry picked from commit 8ee96437f8cd24e1eb0b2adc6cef3346ed4b6a98) Change-Id: Ia74946ffc57ad32de5a8d60be3412462f19f8076
* Add ART_USE_OPTIMIZING_COMPILER flag.Nicolas Geoffray2014-11-251-0/+4
| | | | Change-Id: I86065aec5bfe59729c6a4064a3e54d5b523ca45c
* Merge "Fix transitive equality error in set."Mathieu Chartier2014-11-191-1/+1
|\
| * Fix transitive equality error in set.Mathieu Chartier2014-11-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | SubstringComparator used to be broken since it didn't have transitive equality (ex. ab a ac). Now we use normal string comparison with set.lower_bound saves an additional 12 bytes. Also up frame size to 2700 to fix build. Change-Id: Ie8d41faef37591e7feed1f5d2ad6258430b8ffb6 (cherry picked from commit 4b8b4693ee19efbd2d8692ca0b47b71f3b7da663)
* | Fix the last users of TARGET_CPU_SMP.Elliott Hughes2014-11-191-13/+1
|/ | | | | | Everyone else assumes SMP. Change-Id: I7ff7faef46fbec6c67d6e446812d599e473cba39
* Up the stack size limit for SANITIZE_HOST.Dan Albert2014-11-141-1/+3
| | | | Change-Id: I7c507a6a2e8de534f0e09e961d13db0223eee891
* Modify the behavior of thread suspend shootouts.Ian Rogers2014-11-121-1/+3
| | | | | | | | | | The thread doing the suspension doesn't attempt to suspend the other thread unless it knows another thread isn't trying to suspend it. Use the suspend count, and its lock, for this purpose. Re-enable ThreadStress test. Bug: 15446488 Change-Id: Idd34410c7b89d8abd6973e5699a15ca699472c78
* ART: More warningsAndreas Gampe2014-11-041-1/+29
| | | | | | | Enable -Wno-conversion-null, -Wredundant-decls and -Wshadow in general, and -Wunused-but-set-parameter for GCC builds. Change-Id: I81bbdd762213444673c65d85edae594a523836e5
* Remove -Wno-unused-parameter and -Wno-sign-promo from base cflags.Ian Rogers2014-11-031-2/+0
| | | | | | | | | | | Fix associated errors about unused paramenters and implict sign conversions. For sign conversion this was largely in the area of enums, so add ostream operators for the effected enums and fix tools/generate-operator-out.py. Tidy arena allocation code and arena allocated data types, rather than fixing new and delete operators. Remove dead code. Change-Id: I5b433e722d2f75baacfacae4d32aef4a828bfe1b
* ART: Create and use multiple core imagesAndreas Gampe2014-10-281-7/+0
| | | | | | | | | | | | | Update test infrastructure to understand several core variants. Now compiles three core.art/oat variants: * core.art/oat, default-compiled * core-interpreter.art/oat, interpret-only * core-optimizing.art/oat, optimizing compiler The run-test variant implies which core variant is used. Change-Id: Ieeaf2df90faee2b04c209b950897e77806205fe4
* ART: Fix common_build CFLAGSAndreas Gampe2014-10-211-2/+5
| | | | | | Actually use the additional art_clang_cflags. Change-Id: I2b5c5dacfdbffaa9b9c1e7a6fdb8ad79d8536fe8
* x86 build fix.Ian Rogers2014-10-171-2/+1
| | | | | | | Remove -fkeep-inline-functions from debug builds, having it there causes missing dependencies when we include system/core headers for the target on x86. Change-Id: Ice5c6f0469f604efb58dfacf2ab6bb3183429850