Hello Andrew,
I used the -O1 and options listed with --verbose-asm separately, but the
generated .s file differs. Did I miss some more options apart from the
--verbose-asm listed?
For ex:
> gcc -O1 test.c -S -o test-o1.s
> gcc test.c "option listed in .s file with -version" -S -o test-listopts.s
test-o1.s and test-listopts.s are differs.
Thanks
Swami
M R Swami Reddy wrote:
Hello Andrew,
Thank you very much for your quick response.
But -fverbose-asm and -save-temps doesn't help to list the flags.
Thanks
Swami
Andrew Haley wrote:
M R Swami Reddy wrote:
Hello,
Could any one mention the list optimization flags enabled with -o1
option.
I have a list ( I strongly guess, a few more flags missing from the
below list):
==
-fomit-frame-pointer
-fif-conversion
-fif-conversion2 \
-fipa-pure-const \
-fipa-reference \
-ftree-ccp \
-ftree-dce \
-ftree-dse \
-ftree-ter \
-ftree-sra \
-ftree-copyrename \
-ftree-fre \
-ftree-copy-prop \
-ftree-sink \
-ftree-salias \
-funit-at-a-time
Compile with -fverbose-asm -save temps and look at the .s file
Andrew.