How to turn off specific optimization flags in gcc

前端 未结 1 819
刺人心
刺人心 2021-02-20 12:41

I want to compile with optimization -O1, but there is a certain flag that it turns on that I do not want to use. How do I turn it off?

相关标签:
1条回答
  • 2021-02-20 13:14

    There is usually an equivalent 'no' flag. For example, fstrict-aliasing can be turned off by fno-strict-aliasing. Check the gcc docs for more flags.

    0 讨论(0)
提交回复
热议问题