In clang, how do you use per-function optimization attributes?

As advocated by @dulacc in his comment, __attribute__ ((optnone)) works on clang 9.0.0 on Mac’s High Sierra.

Leave a Comment