Re: Optimization flags not working (GCC 4.2.4)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi John,

Thank you but -O0 makes no difference.

gcc -c -g -O0 -fdefer-pop -fdelayed-branch -fguess-branch-probability -fcprop-registers -fif-conversion -fif-conversion2 -ftree-ccp -ftree-dce -ftree-dominator-opts -ftree-dse -ftree-ter -ftree-lrs -ftree-sra -ftree-copyrename -ftree-fre -ftree-ch -funit-at-a-time -fmerge-constants main.c

(those are all gcc 4.2.4 optimization flags for level -O1 according to the docs) generates the same unoptimized code. Changing -O0 with -O1 generates the optimized version.

John (Eljay) Love-Jensen wrote:
Hi Juan,

If you are not optimizing (-O0), the optimization -f flags have no effect.

HTH,
--Eljay



--
Juan Alonso

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux