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
- rCRT Compiler Runtime
Event Timeline
compiler-rt/lib/asan/asan_malloc_local.h | ||
---|---|---|
28 ↗ | (On Diff #199321) | can we make it always inline function? |
compiler-rt/lib/asan/asan_malloc_local.h | ||
---|---|---|
28 ↗ | (On Diff #199321) | 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 ↗ | (On Diff #199321) | We still need to keep this function -- it's used in asan_malloc_linux.cc. |
28 ↗ | (On Diff #199321) | #define MAYBE_ALLOCATE_FROM_LOCAL_POOL(nothrow) \ |
36 ↗ | (On Diff #199321) | } while (0) |
42 ↗ | (On Diff #199321) | #define MAYBE_ALLOCATE_FROM_LOCAL_POOL(nothrow) |
compiler-rt/lib/asan/asan_new_delete.cc | ||
75 ↗ | (On Diff #199321) | MAYBE_ALLOCATE_FROM_LOCAL_POOL(nothrow); \ |
82 ↗ | (On Diff #199321) | 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 | ||
---|---|---|
24 ↗ | (On Diff #199698) | 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 | ||
---|---|---|
24 ↗ | (On Diff #199698) | I brought this back and tested asan on Linux. |