IBM Support

PJ41099: With PJ40788 applied, strict-aliasing warnings show with the z/TPF gcc 4.6 cross compiler.

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • See Problem Summary.
    

Local fix

  • na
    

Problem summary

  • APAR NUMBER:  PJ41099
    PRODUCT:  z/TPF
    FUNCTIONAL AREA:  BUILD TOOLS
    SHIPPED IN PUT:  10
    
    ABSTRACT:
    With PJ40788 applied, strict-aliasing warnings show with the
    z/TPF gcc 4.6 cross compiler.
    
    PACKAGE CONTENTS:
    Source Segments:
    (C) tpftools/include_ztpf/maketpf.rules_set_flags_tpf_gcc_46
    
    Object Only Binaries:
    None.
    
    Configuration Independent Binaries:
    None.
    
    Support Files:
    None.
    
    OTHER BINARIES TO BUILD: NO
    None.
    
    COMMENTS:
    Two compile issues are addressed in this APAR:
    
    1. In PJ40788, the -Wno-strict-aliasing compile option used to
    hide warnings generated by the -fstrict-aliasing option was
    removed as a system-wide default for the z/TPF gcc 4.6 cross
    compiler. After the APAR was applied, z/TPF gcc 4.6 cross
    compiles of several programs that do not contain the
    -fno-strict-aliasing override in the makefile started
    generating warnings like the following:
    
    warning: dereferencing type-punned pointer will break
    strict-aliasing rules -Wstrict-aliasing
    
    2. When linking FCTB.so with the z/TPF gcc 4.6 cross compiler,
    the list of standard libraries is included. This causes a link
    failure when building a system from scratch because the USRSTUB
    standard library does not exist at the time of the FCTB.so link.
    

Problem conclusion

  • SOLUTION:
    Two updates have been made in this APAR:
    
    1. The default z/TPF gcc 4.6 cross compiler options have been
    updated to include -fno-strict-aliasing to eliminate the
    warnings.
    
    2. The standard libraries are not required to link FCTB.so, so
    they have been removed from the z/TPF gcc 4.6 cross compiler
    link flags for FCTB.so. This allows the FCTB.so to be linked
    cleanly before the standard libraries, like USRSTUB, are
    created. In addition, the "as-needed" link option has been
    added to the z/TPF gcc 4.6 cross compiler link flags for
    FCTB.so, so that the FCTB.so NEEDED list only includes any
    libraries required at runtime.
    
    COREQS: NO
    None.
    
    MIGRATION CONSIDERATIONS: NO
    None.
    
    BUILD COMMANDS AND INSTRUCTIONS: NO
    None.
    
    UPDATED INFORMATION UNITS: NO
    None.
    
    See your IBM representative if you need additional information.
    
    DOWNLOAD INSTRUCTIONS:
    http://www.ibm.com/software/htp/tpf/maint/maintztpf.html
    
    APAR URL:
    http://www.ibm.com/software/htp/tpf/ztpfmaint/put10/PJ41099.htm
    

Temporary fix

Comments

APAR Information

  • APAR number

    PJ41099

  • Reported component name

    Z/TPF

  • Reported component ID

    5748T1501

  • Reported release

    110

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2013-04-03

  • Closed date

    2013-04-10

  • Last modified date

    2013-04-10

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    Z/TPF

  • Fixed component ID

    5748T1501

Applicable component levels

  • R110 PSY

       UP



Document information

More support for: TPF
z/TPF

Software version: 110

Reference #: PJ41099

Modified date: 2013-04-10