-qattr

Category

Listings, messages, and compiler information

Pragma equivalent

#pragma options [no]attr

Purpose

Produces a compiler listing that includes the attribute component of the attribute and cross-reference section of the listing.

Syntax

Read syntax diagramSkip visual syntax diagram
        .-noattr------------.   
>>- -q--+-attr--+---------+-+----------------------------------><
                '-=--full-'     

Defaults

-qnoattr

Parameters

full
Reports all identifiers in the program. If you specify attr without this suboption, only those identifiers that are used are reported.

Usage

If -qattr is specified after -qattr=full, it has no effect; the full listing is produced.

This option does not produce a cross-reference listing unless you also specify -qxref.

The -qnoprint option overrides this option.

Note: Specifying -qattr does not list the #define directives. You can use -qshowmacros instead.

Predefined macros

None.

Examples

To compile the program myprogram.c and produce a compiler listing of all identifiers, enter:
xlc myprogram.c -qxref -qattr=full

Related information