diff options
author | Kostya Kortchinsky <kostyak@google.com> | 2019-06-27 14:23:26 +0000 |
---|---|---|
committer | Kostya Kortchinsky <kostyak@google.com> | 2019-06-27 14:23:26 +0000 |
commit | 09f9fd48848d915f14c5146b4e67d37b2be45ead (patch) | |
tree | 374803e766ca3d7e50c928bb45c65595bab614c8 /test/asan/TestCases/strpbrk_strict.c | |
parent | ef8153e843414a8b82e662c0795616f3034f9aad (diff) | |
download | compiler-rt-09f9fd48848d915f14c5146b4e67d37b2be45ead.tar.gz |
[scudo][standalone] Introduce the C & C++ wrappers [fixed]
Summary:
This is a redo of D63612.
Two problems came up on some bots:
- `__builtin_umull_overflow` was not declared. This is likely due to an
older clang or gcc, so add a guard with `__has_builtin` and fallback
to a division in the event the builtin doesn't exist;
- contradicting definition for `malloc`, etc. This is AFAIU due to the
fact that we ended up transitively including `stdlib.h` in the `.inc`
due to it being the flags parser header: so move the include to the
cc instead.
This should fix the issues, but since those didn't come up in my local
tests it's mostly guesswork.
Rest is the same!
Reviewers: morehouse, hctim, eugenis, vitalybuka, dyung, hans
Reviewed By: morehouse, dyung, hans
Subscribers: srhines, mgorny, delcypher, jfb, #sanitizers, llvm-commits
Tags: #llvm, #sanitizers
Differential Revision: https://reviews.llvm.org/D63831
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@364547 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/asan/TestCases/strpbrk_strict.c')
0 files changed, 0 insertions, 0 deletions