I'm trying to compile my test program with various GCC optimizations options and I'd like to see all of them in the program output. Something like that (the __cpp_optimizations
constant is invented for this question):
std::cout << __cpp_optimizations << std::endl;
Is it any way to do that?