summaryrefslogtreecommitdiffstats
path: root/core/clang
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'cm-13.0' of https://github.com/CyanogenMod/android_build into ↵Wolfgang Wiedmeyer2016-12-131-1/+1
|\ | | | | | | replicant-6.0
| * Avoid accidentally using the host's native 'as' command.Alistair Strachan2016-05-131-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When invoking clang for the host to assemble .S files, the -B flag would not be provided, which allowed the host prebuilt clang to use an 'as' from the native environment. Most of the time this "just works", but some newer 'as' versions cause problems with the older prebuilt toolchain, for example by generating unsupported relocation types. To avoid this problem, simply use the -B flag to tell clang to invoke the assembler from the correct prebuilt gcc prefix. Change-Id: I18ea4f37ae637b652cfd7321c41929f8be075342 Signed-off-by: Alistair Strachan <alistair.strachan@imgtec.com>
* | Clang: use assembler from toolchain, not from systemWolfgang Wiedmeyer2016-09-121-1/+2
| | | | | | | | | | | | This fixes build errors with a more recent binutils. Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
* | clang: fix gcc install pathsWolfgang Wiedmeyer2016-03-181-4/+4
| | | | | | | | | | | | They changed in the latest gcc from 4.9 to 4.9.x Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
* | always build llvm componentsWolfgang Wiedmeyer2016-01-081-3/+1
| | | | | | | | | | | | this way, the prebuilt ones from the sdk are not needed Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
* | clang: fix linkingWolfgang Wiedmeyer2016-01-081-2/+11
| | | | | | | | Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
* | clang: include extra system headersWolfgang Wiedmeyer2016-01-071-3/+6
| | | | | | | | Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
* | don't use the prebuilt host toolchainWolfgang Wiedmeyer2016-01-072-31/+14
|/ | | | | | | this is just an initial version various config parts need cleanup and more testing is necessary Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
* Enable color output from gcc and clangColin Cross2015-11-071-1/+7
| | | | | | | | Force gcc and clang to always output color diagnostics. Ninja will strip the ANSI color codes if it is not running in a terminal. Bug: 24273983 Change-Id: Ic9252549bfacf3bbb3f4b9d20f63010fc24ac21d
* Add -mfpu=neon-vfpv4 if cpu is kraitPirama Arumuga Nainar2015-10-311-1/+1
| | | | | | | | | | | | | | | | | Upstream clang r239152 (http://reviews.llvm.org/D10239) caused a pretty significant change in behavior. Passing an FPU feature via -mfpu disables any feature not supported by those flags (in addition to the old behavior of enabling features supported by the flags). For e.g., -mfpu=neon used to just pass +neon, +vfp3 as target features to the backend. Now, -mfpu=neon also passes -vfp4, -fp16, -fp-armv8. The backend has always disabled implied feature bits if a feature is disabled. Upon seeing the target feature -vfp4, it will disable any processor/feature that implies vfp4, including the bit that the processor is a Krait. Since Krait has both Neon and vfp4, it is safe to pass '-mfpu=neon-vfpv4'. Change-Id: Ibbb992e80b8cbc8dc36d5df556885d0912baea22
* Don't prepend CC_WRAPPER to CLANG.Ying Wang2015-08-031-12/+0
| | | | | | | We have deferred the CC_WRAPPER prepending to binary.mk per module. Bug: 22612634 Change-Id: If2c0549503989d17ff7be619fdd49c26fd78f0a5
* Fix AddressSanitizer link order and multilib setup.Evgenii Stepanov2015-05-123-3/+9
| | | | | | | | | | | | | | | ASan runtime library (when using dynamic linking) must be the first dependency of the main executable to achieve correct symbol interposition. This matches how the clang driver works. In multilib setup, ASan-RT name depends on the target arch: /system/lib/libclang_rt.asan-arm-android.so /system/lib64/libclang_rt.asan-arm64-android.so We also set RPATH to /system/lib/asan or /system/lib64/asan to have a place for ASan-only versions of system libraries. Change-Id: I937d202077b6e433ba476c075d31be818b662d53
* Upgrade x86 gcc to 4.9 and disable devirtualization.Chih-Hung Hsieh2015-05-061-0/+3
| | | | | | | | | | Also filter out gcc-only flags -Wno-clobbered and -fno-devirtualize when compiled with clang/llvm. BUG: 19872411 Change-Id: I6de57583be04da607f569df65e93531787dbb789 (cherry picked from AOSP commit 90036610ddfe0455553a1b46bb8adbeafde0cac1)
* am 07607526: am 63082eab: am b6874440: Merge "Add support for a partial ↵Dan Albert2015-04-171-0/+26
|\ | | | | | | | | | | | | ubsan build." * commit '07607526b8701f471869aecbd89fe4ea1990251e': Add support for a partial ubsan build.
| * Add support for a partial ubsan build.Dan Albert2015-04-171-0/+26
| | | | | | | | | | | | | | | | | | | | Some of the ubsan checks expose a few pathological performance cases in clang, and thus aren't suited to be used in SANITIZE_HOST. This mode is also supported on the target despite not having the target runtime libraries for ubsan by generating traps. Change-Id: I0b0f0a08ca84d72e44e2174a66726b1c5e5cad7e
* | am 3bc25d69: am 683a387e: am 4ed95088: Merge "Add support for ubsan."Dan Albert2015-04-151-1/+1
|\ \ | |/ | | | | | | * commit '3bc25d69580b5cdedd834fe6accf9cc27c0fb102': Add support for ubsan.
| * Merge "Add support for ubsan."Dan Albert2015-04-151-1/+1
| |\
| | * Add support for ubsan.Dan Albert2015-04-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rather than adding LOCAL_UB_SANITIZER, LOCAL_THREAD_SANITIZER, etc for each new sanitizer, deprecate LOCAL_ADDRESS_SANITIZER in favor of LOCAL_SANITZE that mirrors the behavior of -fsanitize=<sanitizers>. For example, the following will use both asan and ubsan: LOCAL_SANITIZE := address undefined We'll leave LOCAL_ADDRESS_SANITIZER around for compatibility until we can clean up the tree. Change-Id: I8a62315129d4753f8e992584ca6db1e5dfdd4d2a
* | | am 1a2fd2eb: am 05130993: am dbecad05: Merge "Use -Wno-format-pedantic to ↵Pirama Arumuga Nainar2015-04-101-0/+5
|\ \ \ | |/ / | | | | | | | | | | | | | | | disable overly aggressive format string warning." * commit '1a2fd2eb1ac5160feb020b65a030c9b2c66d5dfc': Use -Wno-format-pedantic to disable overly aggressive format string warning.
| * | Use -Wno-format-pedantic to disable overly aggressive format string warning.Stephen Hines2015-04-101-0/+5
| |/ | | | | | | | | | | | | | | | | Bug: 20148343 The latest clang warns on "%p" being used with non-void pointer types, which would require a great deal of cleanup in several sub-projects. Change-Id: I4175d5cf8709504455067c906a2eb8ccc8e25432
* | resolved conflicts for merge of e04e91b1 to masterElliott Hughes2015-04-031-4/+6
|\ \ | |/ | | | | Change-Id: I537065b0810ea8525401778824c4810c5e7ef433
| * Filter out gcc flags that are not recognized by clang.Chih-Hung Hsieh2015-04-021-2/+6
| | | | | | | | Change-Id: I04e95fc3b0cb2825bf90a55916f89d25fa9fc475
* | am 8f7338d9: am dc8d7092: am 0064c51e: Merge "Use prebuilt libclang_rt.profile."Dan Albert2015-04-029-0/+17
|\ \ | |/ | | | | | | * commit '8f7338d9b145379ea9c51b7e551509a2d8f0f24e': Use prebuilt libclang_rt.profile.
| * Use prebuilt libclang_rt.profile.Dan Albert2015-04-019-0/+17
| | | | | | | | | | Bug: 17574078 Change-Id: I4838cd5d125a0b2bf76aad2fdaef1ee3122687e8
* | am 95212b90: am 31f35975: am 9a98c47c: Merge "Don\'t warn on definition of ↵Stephen Hines2015-04-011-0/+5
|\ \ | |/ | | | | | | | | | | possibly reserved identifiers." * commit '95212b900b7a9a205d6f8b79dc3fcc07576c18cd': Don't warn on definition of possibly reserved identifiers.
| * Merge "Don't warn on definition of possibly reserved identifiers."Stephen Hines2015-04-011-0/+5
| |\
| | * Don't warn on definition of possibly reserved identifiers.Stephen Hines2015-03-251-0/+5
| | | | | | | | | | | | Change-Id: Icfcfa94aac0503c97dee0ff4d0cd49107201526d
* | | am 29b415aa: am 1e9b11f4: am d63c78e0: Merge "Allow -mcpu=cortex-a15 for clang"Chih-hung Hsieh2015-03-271-2/+1
|\ \ \ | |/ / | | | | | | | | | * commit '29b415aa7781b27fc4948307acc5961cd702dac2': Allow -mcpu=cortex-a15 for clang
| * | Allow -mcpu=cortex-a15 for clangBernhard Rosenkränzer2015-03-251-2/+1
| |/ | | | | | | | | | | | | | | | | Clang 3.6 (including the snapshot present in AOSP) added support for -mcpu=cortex-a15 -- there's no need to fall back to generic armv7-a anymore. Change-Id: I8a582261ac35e32f8f1def1d244cf83f2096520d Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
* | 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
|\ \ | |/ |/|