Repository navigation
Block optimize pragma on EDG - #4980
Conversation
EDG over GCC likes to pretend to be GCC in a lot of macros, but not all. It does not define `__OPTIMIZE__` ever. So we would erroneously emit pragma optimize `Og` even in optimized builds.
|
Is emitting a pragma actually harmful on EDG? Could you elaborate what exactly happens in the optimized mode? |
|
Not from EDG perspective, but yes from GCC perspective. But until recently there was an even worse situation. But it seems something changed in EDG since then, |
|
Example on EDG 7: https://godbolt.org/z/jh5zhT3Kh |
|
Merged, thanks! |
EDG over GCC likes to pretend to be GCC in a lot of macros, but not all.
It does not define
__OPTIMIZE__ever.So we would erroneously emit pragma optimize
Ogeven in optimized builds.