This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Optimization flags not working (GCC 4.2.4)


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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]