We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76d781f commit 67c98fbCopy full SHA for 67c98fb
optimize_related.md
@@ -1,3 +1,7 @@
1
# when clang/clang++ cannot deduce function matching
2
- Disable optimization using `#pragma clang optimize off` in the top of the function
3
- Ref: https://gcc.gnu.org/onlinedocs/gcc/Function-Specific-Option-Pragmas.html
4
+
5
+# using attribute
6
+- `#pragma gcc optimize off` may not work well
7
+- `bool __attribute__((optimize("O0"))) myfunc()` will work
0 commit comments