summaryrefslogtreecommitdiffstats
path: root/core/clang
Commit message (Collapse)AuthorAgeFilesLines
* Filter out gcc only flags.Chih-Hung Hsieh2015-03-191-0/+4
| | | | | | They are currently used in some vendor projects. Change-Id: Iff30966cba3b2941a8921cc35bb3ed1e4fea0bad
* Filter out unsupported flag: -fprefetch-loop-arraysChih-Hung Hsieh2015-03-051-0/+1
| | | | Change-Id: I55ba9045948a910ebd76c09f9f4ebb6b37eed1e7
* Disable tail call optimization and use -mstackrealign to boot up on fugu.Chih-Hung Hsieh2015-03-021-1/+9
| | | | | | | | | | | | http://llvm.org/bugs/show_bug.cgi?id=15086, llvm tail call optimization is wrong for x86. For Android/x86 to use SSE* instructions safely, stack should be 16-byte aligned before JNI function call, which isn't true for all x86 device, so -mstackrealign should be the default. BUG: 19234330 Change-Id: I4c6676366788772dbe64fd7f0dd33b3ed5c9b80e
* Make bcc-compat able to pick the right mtriple flag for RenderscriptMiao Wang2015-01-122-2/+2
| | | | | | Compat Lib. Change-Id: Ifb3093ebc392d107e874cee3a67b5f6e942c6e0a
* disable Krait for Mac builds to avoid assembler issuesTim Murray2014-12-091-0/+5
| | | | Change-Id: Ie98f4dbc2cef92798ec08b43b93e7e0339a92a92
* Let clang decide ASan linker flags for the host.Dan Albert2014-12-051-9/+2
| | | | | | | | | | | | Pass -fsanitize=address instead of manually specifying asan libraries and other linker flags. Note that we enable LOCAL_ALLOW_UNDEFINED_SYMBOLS by default for host builds because ASAN only links symbols in the final executable, so there will _always_ be undefined symbols in intermediate libraries. Bug: 18208352 Change-Id: Ief55ab296e94974560eeb10507ec8d90f0025d5c
* Switch to Clang 3.6.Stephen Hines2014-12-031-2/+8
| | | | | | | | This change also defaults C compilations with clang to gnu99, and turns off the -Winconsistent-missing-override flag, since we need further cleanup to turn it on. -finline-functions is an unnecessary flag that only gcc needs. Change-Id: I1cfcaedca32d9e3c248a6aa9460603205901c491
* Add more support for GLOBAL_CONLYFLAGS.Stephen Hines2014-12-019-0/+75
| | | | | | | This will be necessary to support -std=gnu99 mode for clang 3.6, which defaults to C11 mode (unlike prior releases that use C99). Change-Id: Iea84582f9f12ba76b988463cbc0a20bd61042538
* am 478eda53: Merge "FORCE_BUILD_LLVM_COMPONENTS if HOST_PREFER_32_BIT."Ying Wang2014-11-071-0/+5
|\ | | | | | | | | * commit '478eda5365f866c830f957d6bd1aba3854d55bcc': FORCE_BUILD_LLVM_COMPONENTS if HOST_PREFER_32_BIT.
| * FORCE_BUILD_LLVM_COMPONENTS if HOST_PREFER_32_BIT.Ying Wang2014-11-061-0/+5
| | | | | | | | | | | | Because we don't have 32-bit prebuilt libLLVM/libclang. Change-Id: I86dac33e9bcbcb3d197f7d1e4c9d33bd4e7c473e
* | am 35e4ede5: Merge "Use automatic color option with the latest clang."Stephen Hines2014-11-041-2/+1
|\ \ | |/ | | | | | | * commit '35e4ede5974053d05ae0f8791e60ba77a31907b3': Use automatic color option with the latest clang.
| * Use automatic color option with the latest clang.Stephen Hines2014-11-031-2/+1
| | | | | | | | | | | | | | | | | | Bug: 18187181 Now that I checked in the latest prebuilts, clang will automatically use color on terminals and no color on redirection to files or non-terminals. Change-Id: I9be00c44947946cc18ce59c936b7f45d0ce2b6fc
* | am 871b8df1: Merge "Add -fcolor-diagnostics to global clang cflags."Ying Wang2014-10-301-1/+2
|\ \ | |/ | | | | | | * commit '871b8df128b144f39d40889e463722a032c4d246': Add -fcolor-diagnostics to global clang cflags.
| * Add -fcolor-diagnostics to global clang cflags.Ying Wang2014-10-301-1/+2
| | | | | | | | | | Bug: 18187181 Change-Id: Ifcbe34b685b1dfd7ffc801bcdad7bd8208e45f86
* | am 93cb8c7d: Merge "Specify -mcpu=krait for clang."Ian Rogers2014-10-291-0/+6
|\ \ | |/ | | | | | | * commit '93cb8c7d951b89eeb1e3cee2433bffecc13fdb11': Specify -mcpu=krait for clang.
| * Specify -mcpu=krait for clang.Ian Rogers2014-10-281-0/+6
| | | | | | | | Change-Id: I64682cddf57246341c1727ca16c56f7ce0c6fd0a
* | am 717ebfc1: Merge "Add unknown flag to CLANG_CONFIG_UNKNOWN_CFLAGS."Chih-Hung Hsieh2014-10-281-0/+1
|\ \ | |/ | | | | | | * commit '717ebfc13182202ab38e17c0cd008924e9e5c4e9': Add unknown flag to CLANG_CONFIG_UNKNOWN_CFLAGS.
| * Add unknown flag to CLANG_CONFIG_UNKNOWN_CFLAGS.Chih-Hung Hsieh2014-10-231-0/+1
| | | | | | | | | | BUG: 18108271 Change-Id: Id929cad31340d2946027603c1c8c8fb1cb60f66a
* | am 660f3c9a: Merge "Set default to Clang integrated assembler."Chih-Hung Hsieh2014-10-243-24/+12
|\ \ | |/ | | | | | | * commit '660f3c9ae9cb99f428fb62fb6a1256679eb9f138': Set default to Clang integrated assembler.
| * Set default to Clang integrated assembler.Chih-Hung Hsieh2014-10-223-24/+12
| | | | | | | | | | BUG: 17820427 Change-Id: I10a6ddd94aad083665164d7939990e148b3b6efb
* | Merge commit '66b3e31936b99436e01c473dca492126eea3e336' into HEADBill Yi2014-10-221-4/+5
|\ \ | |/ |/|
| * am cc0aa4da: am 28c265dd: Merge "We also need -rdynamic for host ASAN."Dan Albert2014-10-201-0/+2
| |\ | | | | | | | | | | | | * commit 'cc0aa4dabd4bae2b17bc9de8f88e04e862d030b2': We also need -rdynamic for host ASAN.
| * \ resolved conflicts for merge of 96c22133 to lmp-dev-plus-aospDan Albert2014-10-201-2/+8
| |\ \ | | | | | | | | | | | | Change-Id: I35a2f403e9e664536b45b5ac9185adf1e1a02442
| * \ \ am 8913e282: am 29373be8: Merge "Add -fPIC as default Clang mips ASFLAGS."Chih-Hung Hsieh2014-10-091-0/+1
| |\ \ \ | | | | | | | | | | | | | | | | | | | | * commit '8913e28295a9f93121fa60f74a6ff39eadd2e86d': Add -fPIC as default Clang mips ASFLAGS.
| * \ \ \ am 56f688bc: Merge "Switch TBLGEN-related executables to use "BUILD_" ↵Stephen Hines2014-10-011-2/+2
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | instead of "HOST_"." into lmp-dev * commit '56f688bce5f3229f065a94446d049bc3a055b92b': Switch TBLGEN-related executables to use "BUILD_" instead of "HOST_".
| | * | | | Switch TBLGEN-related executables to use "BUILD_" instead of "HOST_".Stephen Hines2014-09-301-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 14416410 Change-Id: Ife2d7329795f229adcddc5c57b20aa96c56387c0
| | * | | | Change mips64 default to mips64r6 from mips64r2Andrew Hsieh2014-09-042-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also add back mips flags previously can't be handled by clang See aosp/build 13066a8d4c2f8ddb2348e6d3df3948a0f4dbf105 10326b3d7f1966381812ef55478619f714917c23 Change-Id: Iedc8dadd24f72fbd9c5589eec34677c1827290f3
| * | | | | am 145eddfd: am 670018fd: Merge "Remove unnecessary ↵Stephen Hines2014-09-261-6/+0
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CLANG_CONFIG_EXTRA_*_C_INCLUDES variables." * commit '145eddfd229b118fadd4f4f255dbecc1a79b5e2b': Remove unnecessary CLANG_CONFIG_EXTRA_*_C_INCLUDES variables.
| * \ \ \ \ \ am 3041b7d1: am 3cf20570: Merge "Use new variable LLVM_PREBUILTS_VERSION to ↵Stephen Hines2014-09-261-2/+3
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | simplify path construction." * commit '3041b7d1f4f457082f8de50bba31adb479731d36': Use new variable LLVM_PREBUILTS_VERSION to simplify path construction.
| * \ \ \ \ \ \ am 52626d2a: Fix build breakage due to incorrect bcc_compat RS_TRIPLE.Stephen Hines2014-09-036-0/+6
| |\ \ \ \ \ \ \ | | | |_|/ / / / | | |/| | | | | | | | | | | | | | | | | | | | | * commit '52626d2a7b4767905e8a369ddc8316c1290ad156': Fix build breakage due to incorrect bcc_compat RS_TRIPLE.
| | * | | | | | Fix build breakage due to incorrect bcc_compat RS_TRIPLE.Stephen Hines2014-09-026-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 17333374 Change-Id: I13582ce0cde86f7b3728aa4f45a5197438d65a2d
| | * | | | | | Fix RS_TRIPLE and RS_TRIPLE_CFLAGS.Stephen Hines2014-09-026-4/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 17333374 Add RS_TRIPLE_CFLAGS to ensure that we build with the proper defines on targets like x86. This also changes all build targets to use the proper 32/64-bit triples when creating their runtime libraries. (cherry picked from commit 039675adb8882b21e770edac1bd167d7fb489052) Change-Id: Ib7b5bb7aae5abcad9ab477a00e368179d0121091
| | * | | | | | [MIPSR6] Add mips64r6 and mips32r6 targetsDuane Sand2014-08-052-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add mips64r6 target and corresponding mips32r6 target. Defaults remain as mips64r2 and mips32r2. Apply -FP64A codegen subsetting to mips32r6 only. Access FR=0 odd-numbered 32-bit float regs only via double-prec even-numbered regs, not by single-prec ops. (cherry picked from commit 6bab974cdc90cb3a7514c7255b6e6adfb9c98e2b) Change-Id: I447337ce56c15e86cec505d68a6b45294fc3ba77
| | * | | | | | [MIPS64] Enable mips64 clangDuane Sand2014-08-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (cherry picked from commit 41ca4446370ba90e472e45a8897868855185a6c7) Change-Id: I0b141c58c88fe86e3a59844f53acc9a0e0a5271c
| | * | | | | | [MIPS] Unite mipsel and mips64el 4.9 gcc toolchainsDuane Sand2014-08-053-15/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use 4.9 mips64el toolchain for both 64- and 32-bit builds. Tell ld when 32-bit links are required. Override 4.9's changed defaults for mips floating point register use, to get same assembler rules as 4.8 and earlier. Also: drop unused soft-fp build targets, cleanout redundant compiler options, and remove extraneous Android.mk file. (cherry picked from commit 6670e24aed1ca66f21a6af759a0d156bb3df1739) Change-Id: I34d2f8fc6113c9d1670e3acff1aff48634b9fe1b
| | * | | | | | Revert "Revert "Introduce CC/CXX/JAVAC_WRAPPER to wrap the calls to clang.""Ying Wang2014-07-301-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit a4f84fdfed9a805d69b37de997512cd0616b3ff8. Added "export CCACHE_CPP2 := true" to work around ccache bug with clang. See: http://petereisentraut.blogspot.com/2011/09/ccache-and-clang-part-2.html Change-Id: I2b1fa8fd59c3a113c4028a92a1d16018133c9792
| * | | | | | | am 067dd379: am cee38d55: Merge "[MIPSR6] R6 target options for clang"Ying Wang2014-09-032-9/+0
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '067dd37952ce2df454623d4f849d079673b12f49': [MIPSR6] R6 target options for clang
| * \ \ \ \ \ \ \ am 6f8fe420: am ec8778e8: Merge "Fix RS_TRIPLE and RS_TRIPLE_CFLAGS."Stephen Hines2014-09-026-4/+10
| |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '6f8fe42043ab75860ac38c20e907976101a39f71': Fix RS_TRIPLE and RS_TRIPLE_CFLAGS.
| * \ \ \ \ \ \ \ \ am 9e59e663: am 90d5c7f6: Merge "Clang rejects -Wno-old-style-declaration flag."Chih-Hung Hsieh2014-08-271-8/+9
| |\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '9e59e66373a68782179f5522d125c8617ecd92a6': Clang rejects -Wno-old-style-declaration flag.
| * \ \ \ \ \ \ \ \ \ am 0b97fd8a: am b699b0ea: Merge "Clang does not recognize -Wno-literal-suffix."Chih-Hung Hsieh2014-08-271-1/+2
| |\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '0b97fd8acef5d69b2f0abf19493ec5640bbd2085': Clang does not recognize -Wno-literal-suffix.
| * \ \ \ \ \ \ \ \ \ \ am 9050234a: am f1c63b02: Merge "Add GCC only flags to clang .mk files."Chih-Hung Hsieh2014-08-261-1/+7
| |\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '9050234a5eb3b4395618a151aa752ebcfff9a3eb': Add GCC only flags to clang .mk files.
| * \ \ \ \ \ \ \ \ \ \ \ am e0383397: am e1a77930: Merge "Update host linux toolchain to gcc 4.8"Ying Wang2014-07-311-10/+10
| |\ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'e0383397a2be0be120da20cebd77e3f1f811a6b0': Update host linux toolchain to gcc 4.8
| * \ \ \ \ \ \ \ \ \ \ \ \ am c378352d: am d23798bf: Merge "[MIPSR6] Add mips64r6 and mips32r6 targets"Elliott Hughes2014-07-302-2/+2
| |\ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'c378352de8a07a7b8dabd444d130710ce1cb3eed': [MIPSR6] Add mips64r6 and mips32r6 targets
| * \ \ \ \ \ \ \ \ \ \ \ \ \ am e4d54f31: am 0b3c42cb: Merge "[MIPS] Unite mipsel and mips64el 4.9 gcc ↵Elliott Hughes2014-07-303-15/+6
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | toolchains" * commit 'e4d54f317df641faf216e4000fbc3d091d3c1abc': [MIPS] Unite mipsel and mips64el 4.9 gcc toolchains
| * \ \ \ \ \ \ \ \ \ \ \ \ \ \ am 18c20aae: am aea1cae4: Merge "Revert "Revert "Introduce ↵Ying Wang2014-07-301-0/+11
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CC/CXX/JAVAC_WRAPPER to wrap the calls to clang.""" * commit '18c20aae44b5736b673c8776202e1e76b6bd81cd': Revert "Revert "Introduce CC/CXX/JAVAC_WRAPPER to wrap the calls to clang.""
| * \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ am bf4ac764: am 6be7d2e5: Merge "Revert "Introduce CC/CXX/JAVAC_WRAPPER to ↵Marcin Kosiba2014-07-281-11/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | wrap the calls to clang."" * commit 'bf4ac764cdc7bf6b09e30b79ca6088ef17de9e07': Revert "Introduce CC/CXX/JAVAC_WRAPPER to wrap the calls to clang."
| * \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ am 53e19fd4: am 45040bdb: Merge "Introduce CC/CXX/JAVAC_WRAPPER to wrap the ↵Ying Wang2014-07-261-0/+11
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | calls to clang." * commit '53e19fd4e259ea47e6b81b8472fbdc6041ca7044': Introduce CC/CXX/JAVAC_WRAPPER to wrap the calls to clang.
| * \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ resolved conflicts for merge of 2812b27c to lmp-dev-plus-aospTim Murray2014-07-244-2/+15
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I770fbf16affbd43b0750b50426298038e4b573b7
| * \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ am 5d23800f: am 1bb9adb8: Merge "[MIPS64] Enable mips64 clang"Ying Wang2014-07-241-1/+1
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |_|_|_|_|_|_|_|_|_|_|_|_|/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '5d23800f2b61c03a97395815e94d2aa44eea8577': [MIPS64] Enable mips64 clang
| * | | | | | | | | | | | | | | | | | | am a44f9a35: am edbc4595: am d51730a6: Merge "Help catch common 32/64-bit ↵Brian Carlstrom2014-06-171-1/+5
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | errors." * commit 'a44f9a35a284c600616a7f2213a861ecdefd5615': Help catch common 32/64-bit errors.