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: How to dump all the optimization flags enabled?


Wei Hu writes:
 > Hello,
 > 
 > Is there a way to tell gcc to print out all the effective optimization
 > flags when it compiles a C file?
 > I know the manual tells you what flags are set at different
 > optimization levels, but I'm still looking for an answer to my
 > question because it will be useful to my project.

Yes.  -fverbose-asm dumps the flags to the .s file.

Andrew.

-- 
Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, UK
Registered in England and Wales No. 3798903


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]