[PATCH] D67628: [compiler-rt][crt] pass -O0 in check_cxx_section_exists
Petr Hosek via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 16 11:07:38 PDT 2019
phosek added a comment.
Could we make the function non-trivial e.g. `__attribute__((constructor)) void f() { asm volatile ("nop"::); }` to ensure that it's not optimized out even at `-O2`?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D67628/new/
https://reviews.llvm.org/D67628
More information about the llvm-commits
mailing list