Previous:Dump types, Up:Optimization info [Contents][Index]
gcc -O3 -fopt-info-missed=missed.all
outputs missed optimization report from all the passes intomissed.all.
As another example,
gcc -O3 -fopt-info-inline-optimized-missed=inline.txt
will output information about missed optimizations as well asoptimized locations from all the inlining passes intoinline.txt.
If thefilename is provided, then the dumps from all theapplicable optimizations are concatenated into thefilename.Otherwise the dump is output ontostderr. Ifoptions isomitted, it defaults tooptimized-optall, which means dumpall information about successful optimizations from all the passes.In the following example, the optimization information is output ontostderr.
gcc -O3 -fopt-info
Note that-fopt-info-vec-missed behaves the same as-fopt-info-missed-vec. The order of the optimization groupnames and message types listed after-fopt-info does not matter.
As another example, consider
gcc -fopt-info-vec-missed=vec.miss -fopt-info-loop-optimized=loop.opt
Here the two output file namesvec.miss andloop.opt arein conflict since only one output file is allowed. In this case, onlythe first option takes effect and the subsequent options areignored. Thus only thevec.miss is produced which containtsdumps from the vectorizer about missed opportunities.