Details
- Reviewers
dmajor vitalybuka waltl - Commits
- rZORG695d85a81683: [asan] Fix debug asan build link error
rG695d85a81683: [asan] Fix debug asan build link error
rG9e0edce56427: [asan] Fix debug asan build link error
rL361427: [asan] Fix debug asan build link error
rCRT361427: [asan] Fix debug asan build link error
Diff Detail
- Repository
- rG LLVM Github Monorepo
- Build Status
Buildable 32265 Build 32264: arc lint + arc unit
Event Timeline
compiler-rt/lib/asan/asan_malloc_local.h | ||
---|---|---|
33 | can we make it always inline function? |
compiler-rt/lib/asan/asan_malloc_local.h | ||
---|---|---|
33 | We'd still need a macro with control flow because it returns early if the local pool is used. |
I have problems getting this to compile. Let me work on it and either suggest in-line changes or make a new revision.
Here are the changes I needed to make to get this to compile for linux and Myriad.
compiler-rt/lib/asan/asan_malloc_local.h | ||
---|---|---|
25 | We still need to keep this function -- it's used in asan_malloc_linux.cc. | |
33 | #define MAYBE_ALLOCATE_FROM_LOCAL_POOL(nothrow) \ | |
41 | } while (0) | |
47 | #define MAYBE_ALLOCATE_FROM_LOCAL_POOL(nothrow) | |
compiler-rt/lib/asan/asan_new_delete.cc | ||
75 | MAYBE_ALLOCATE_FROM_LOCAL_POOL(nothrow); \ | |
82 | MAYBE_ALLOCATE_FROM_LOCAL_POOL(nothrow); \ |
Sorry for the broken patch, I forgot to be extra careful on the codepaths I can't test, clearly. Does this work?
There is still a problem building for Linux. See comment below.
compiler-rt/lib/asan/asan_malloc_local.h | ||
---|---|---|
23 | The code in asan_malloc_linux.cc that calls this function is used for many platforms, not just RTEMS, so we still need this function in the original form. Alternatively, we can fix asan_malloc_linux.cc so that only RTEMS call this function. Either solution is fine with me. |
compiler-rt/lib/asan/asan_malloc_local.h | ||
---|---|---|
23 | I brought this back and tested asan on Linux. |
We still need to keep this function -- it's used in asan_malloc_linux.cc.