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

后端 未结 2 735
一生所求
一生所求 2020-12-01 12:53

I\'m trying to compile a specific function with no optimization using clang, in order to prevent certain security-related calls to memset() from be

2条回答
  •  一生所求
    2020-12-01 13:35

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

提交回复
热议问题