-qskipsrc

Category

Listings, messages, and compiler information

Pragma equivalent

None.

Purpose

When a listing file is generated using the -qsource option, -qskipsrc can be used to determine whether the source statements skipped by the compiler are shown in the source section of the listing file. Alternatively, the -qskipsrc=hide option is used to hide the source statements skipped by the compiler.

Syntax

Read syntax diagramSkip visual syntax diagram
                    .-show-.   
>>- -q--skipsrc--=--+-hide-+-----------------------------------><

Defaults

Parameters

show | hide
When show is in effect, the compiler will display all source statements in the listing. This will result in both true and false paths of the preprocessing directives to be shown.
On the contrary, when hide is enabled, all source statements that the compiler skipped will be omitted.

Usage

In general, the -qskipsrc option does not control whether the source section is included in the listing file, it only does so when the -qsource option is in effect.

To display all source statements in the listing (default option):

xlc myprogram.c -qsource -qskipsrc=show

To omit source statements skipped by the compiler:

xlc myprogram.c -qsource -qskipsrc=hide

Predefined macros

None.

Related information