PJ41099: With PJ40788 applied, strict-aliasing warnings show with the z/TPF gcc 4.6 cross compiler.
Closed as program error.
See 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.
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
Reported component name
Reported component ID
NoSpecatt / Xsystem
Last modified date
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fixed component name
Fixed component ID
Applicable component levels