Options that control listings and messages

Table 33. Options for listings
Option name Type Default Description
-qattr -qopt -qnoattr Produces a compiler listing that includes an attribute listing for all identifiers.
-qlist -qopt -qnolist Produces a compiler listing that includes an object listing.
-qlistopt -qopt -qnolistopt Produces a compiler listing that displays all options in effect.
-qprint -qopt -qprint -qnoprint suppresses listings.
-qshowinc -qopt -qnoshowinc Used together with -qsource to selectively show user header files (includes using " ") or system header files (includes using < >) in the program source listing.
-qtabsize -qopt -qtabsize=8 Changes the length of tabs as perceived by the compiler.
-qxref -qopt -qnoxref Produces a compiler listing that includes a cross-reference listing of all identifiers.

Table 34. Options for messages
Option name Type Default Description
-qflag -qopt -qflag=i:i Specifies the minimum severity level of diagnostic messages to be reported.
-qformat -qopt See -qformat Warns of possible problems with string input and output format specifications.
-qhalt -qopt C only-qhalt=s
C++ only-qhalt=e
Instructs the compiler to stop after the compilation phase when it encounters errors of specified severity or greater.
C++ only -qhaltonmsg -qopt - Instructs the compiler to stop after the compilation phase when it encounters a specific error message.
-qinfo -qopt C only-qnoinfo
C++ only-qinfo=lan:trx
Produces informational messages.
-qphsinfo -qopt -qnophsinfo Reports the time taken in each compilation phase.
-qreport -qopt -qnoreport Instructs the compiler to produce transformation reports that show how program loops are parallelized and optimized.
C only-qsrcmsg -qopt -qnosrcmsg Adds the corresponding source code lines to the diagnostic messages in the stderr file.
-qsuppress -qopt See -qsuppress. Specifies compiler message numbers to be suppressed.
-qversion -qopt -qnoversion Displays the version and release of the compiler being invoked.
-qwarnfourcharconsts -qopt -qnowarnfourcharconsts Enable warning of four-character constants in program source.
-V -flag - Instructs the compiler to report information on the progress of the compilation in a command-like format.
-v -flag - Instructs the compiler to report information on the progress of the compilation.
-w -flag - Requests that warning messages be suppressed.