4 ms·
Assuming spatulas are absent, I've never had a problem with the build system on Linux. Nonetheless, for GCC the equivalent is: #pragma GCC optimize ("O0") (
by o11c 2y ago
Assuming spatulas are absent, I've never had a problem with the build system on Linux. Nonetheless, for GCC the equivalent is:
#pragma GCC optimize ("O0")
(see also target, push_options, and pop_options)
This is also available as a per-function attribute, using both gnu and standard syntaxes:
__attribute__((optimize("O0")))
[[gnu::optimize("O0")]]
- bialpio 2y agoFor completeness, in Clang `[[clang::optnone]]` as a per-function attribute also works fine. I'm using it for debugging quite frequently lately.