https://www.airs.com/dnovillo/Papers/eci2008.pdf Use -fverbose-asm -save-temps to determine what flags were enabled by -Ox Use -fno-... to disable a specific pass
CPPFLAGS=-g -pthread -Q -v You can run gcc -Q -v on a small C file to have GCC dump the options being used. Run it with and without the -O1 option to get the difference between the enabled options.