| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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)
|
|\
| |
| |
| |
| |
| |
| | |
ubsan build."
* commit '07607526b8701f471869aecbd89fe4ea1990251e':
Add support for a partial ubsan build.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|\ \
| |/
| |
| |
| | |
* commit '3bc25d69580b5cdedd834fe6accf9cc27c0fb102':
Add support for ubsan.
|
| |\ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
|\ \ \
| |/ /
| | |
| | |
| | |
| | |
| | | |
disable overly aggressive format string warning."
* commit '1a2fd2eb1ac5160feb020b65a030c9b2c66d5dfc':
Use -Wno-format-pedantic to disable overly aggressive format string warning.
|
| |/
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|\ \
| |/
| |
| | |
Change-Id: I537065b0810ea8525401778824c4810c5e7ef433
|
| |
| |
| |
| | |
Change-Id: I04e95fc3b0cb2825bf90a55916f89d25fa9fc475
|
|\ \
| |/
| |
| |
| | |
* commit '8f7338d9b145379ea9c51b7e551509a2d8f0f24e':
Use prebuilt libclang_rt.profile.
|
| |
| |
| |
| |
| | |
Bug: 17574078
Change-Id: I4838cd5d125a0b2bf76aad2fdaef1ee3122687e8
|
|\ \
| |/
| |
| |
| |
| |
| | |
possibly reserved identifiers."
* commit '95212b900b7a9a205d6f8b79dc3fcc07576c18cd':
Don't warn on definition of possibly reserved identifiers.
|
| |\ |
|
| | |
| | |
| | |
| | | |
Change-Id: Icfcfa94aac0503c97dee0ff4d0cd49107201526d
|
|\ \ \
| |/ /
| | |
| | |
| | | |
* commit '29b415aa7781b27fc4948307acc5961cd702dac2':
Allow -mcpu=cortex-a15 for clang
|
| |/
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
|/
|
|
|
|
| |
They are currently used in some vendor projects.
Change-Id: Iff30966cba3b2941a8921cc35bb3ed1e4fea0bad
|
|
|
|
| |
Change-Id: I55ba9045948a910ebd76c09f9f4ebb6b37eed1e7
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
Compat Lib.
Change-Id: Ifb3093ebc392d107e874cee3a67b5f6e942c6e0a
|
|
|
|
| |
Change-Id: Ie98f4dbc2cef92798ec08b43b93e7e0339a92a92
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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
|
|\
| |
| |
| |
| | |
* commit '478eda5365f866c830f957d6bd1aba3854d55bcc':
FORCE_BUILD_LLVM_COMPONENTS if HOST_PREFER_32_BIT.
|
| |
| |
| |
| |
| |
| | |
Because we don't have 32-bit prebuilt libLLVM/libclang.
Change-Id: I86dac33e9bcbcb3d197f7d1e4c9d33bd4e7c473e
|
|\ \
| |/
| |
| |
| | |
* commit '35e4ede5974053d05ae0f8791e60ba77a31907b3':
Use automatic color option with the latest clang.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|\ \
| |/
| |
| |
| | |
* commit '871b8df128b144f39d40889e463722a032c4d246':
Add -fcolor-diagnostics to global clang cflags.
|
| |
| |
| |
| |
| | |
Bug: 18187181
Change-Id: Ifcbe34b685b1dfd7ffc801bcdad7bd8208e45f86
|
|\ \
| |/
| |
| |
| | |
* commit '93cb8c7d951b89eeb1e3cee2433bffecc13fdb11':
Specify -mcpu=krait for clang.
|
| |
| |
| |
| | |
Change-Id: I64682cddf57246341c1727ca16c56f7ce0c6fd0a
|
|\ \
| |/
| |
| |
| | |
* commit '717ebfc13182202ab38e17c0cd008924e9e5c4e9':
Add unknown flag to CLANG_CONFIG_UNKNOWN_CFLAGS.
|
| |
| |
| |
| |
| | |
BUG: 18108271
Change-Id: Id929cad31340d2946027603c1c8c8fb1cb60f66a
|
|\ \
| |/
| |
| |
| | |
* commit '660f3c9ae9cb99f428fb62fb6a1256679eb9f138':
Set default to Clang integrated assembler.
|
| |
| |
| |
| |
| | |
BUG: 17820427
Change-Id: I10a6ddd94aad083665164d7939990e148b3b6efb
|
|\ \
| |/
|/| |
|
| |\
| | |
| | |
| | |
| | | |
* commit 'cc0aa4dabd4bae2b17bc9de8f88e04e862d030b2':
We also need -rdynamic for host ASAN.
|
| |\ \
| | | |
| | | |
| | | | |
Change-Id: I35a2f403e9e664536b45b5ac9185adf1e1a02442
|
| |\ \ \
| | | | |
| | | | |
| | | | |
| | | | | |
* commit '8913e28295a9f93121fa60f74a6ff39eadd2e86d':
Add -fPIC as default Clang mips ASFLAGS.
|
| |\ \ \ \
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
instead of "HOST_"." into lmp-dev
* commit '56f688bce5f3229f065a94446d049bc3a055b92b':
Switch TBLGEN-related executables to use "BUILD_" instead of "HOST_".
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Bug: 14416410
Change-Id: Ife2d7329795f229adcddc5c57b20aa96c56387c0
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Also add back mips flags previously can't be handled by clang
See aosp/build
13066a8d4c2f8ddb2348e6d3df3948a0f4dbf105
10326b3d7f1966381812ef55478619f714917c23
Change-Id: Iedc8dadd24f72fbd9c5589eec34677c1827290f3
|
| |\ \ \ \ \
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
CLANG_CONFIG_EXTRA_*_C_INCLUDES variables."
* commit '145eddfd229b118fadd4f4f255dbecc1a79b5e2b':
Remove unnecessary CLANG_CONFIG_EXTRA_*_C_INCLUDES variables.
|
| |\ \ \ \ \ \
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
simplify path construction."
* commit '3041b7d1f4f457082f8de50bba31adb479731d36':
Use new variable LLVM_PREBUILTS_VERSION to simplify path construction.
|
| |\ \ \ \ \ \ \
| | | |_|/ / / /
| | |/| | | | |
| | | | | | | |
| | | | | | | | |
* commit '52626d2a7b4767905e8a369ddc8316c1290ad156':
Fix build breakage due to incorrect bcc_compat RS_TRIPLE.
|
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
Bug: 17333374
Change-Id: I13582ce0cde86f7b3728aa4f45a5197438d65a2d
|
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
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
|