This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

set optimization off for one file

I have on file I want to do no optimization on. I've discovered that the capability to to function attributes for this - such as: __attribute__((optimize("O0"))) does not exist and the compiler lets me know that #pragma gcc is unrecognized. I can set the whole file to be no optimization, but want the rest of the project to be optimized.

Any suggestions?

Thanks