Object Code Accelerator Manual

OCA Syntax and Option Summary
Object Code Accelerator Manual528144-003
5-8
Diagnosing and Managing Register or Condition
Code Inheritance
INHERITSRn
where the value of n applies to each register that is inherited. Values for
INHERITSR are: INHERITSR0, INHERITSR1, INHERITSR2, INHERITSR3,
INHERITSR4, INHERITSR5, INHERITSR6, or INHERITSR7.
proc-name
is a procedure name. Procedure names are case-sensitive so specify a procedure
name using the exact spelling and case as it appears in the Binder region of the
object file. OCA error message display the exact spelling and case for a procedure.
INHERITSCC
Use the INHERITSCC option if you determine that OCA is issuing Warning 16 because
a condition code is passed into and used by the routine. Note that Warning 16 is
usually spurious and INHERITSCC should only be used when Warning 16 is not
spurious.This option directs OCA to treat the condition code (CC) as “live” on calls to
the named procedure. It also suppresses further issuance of Warning 16 and allows
OCA to complete procedure translation. The option INHERITSCC_ON is a synonym
for INHERITSCC.
proc-name
is a procedure name. Procedure names are case-sensitive so specify a procedure
name using the exact spelling and case as it appears in the Binder region of the
object file. OCA error message display the exact spelling and case for a procedure.
IGNORE_IRn, IGNORE_CC, INHERITSRn, and INHERITSCC Usage
Considerations
If you specify a procedure name that does not exist, OCA ignores the procedure
and continues translating without generating a warning.
Procedures rarely expect arguments that are passed into TNS registers. Confirm
that your procedure uses this calling convention and verify the exact spelling of the
procedure name and the TNS register number.
Supply a valid INHERITSRn or INHERITSCC option to prevent additional false
register inheritance warnings to display about the caller procedure and other
procedures it calls.
OCA diagnoses the appearance of “inherited” registers with a warning assuming
the condition is false unless an INHERITS_Rn option is supplied. The
IGNORE_IRn option suppresses this warning.
oca [/ run-options/] input-file, INHERITSCC proc-name