IV39183: Different FILE NAMING OF CPP OUTPUT FROM -D

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as user error.

Error description

  • Source files preprocessed by CPP that are kept by using the -d
    compiler option have their file suffixes set to the
    Fortran-specific version suffix, instead of *.f.  For example,
    the preprocessed file name for test.F90 will be Ftest.f90.  In
    previous versions of the compiler, the file name would be
    Ftest.f .
    

Local fix

Problem summary

Problem conclusion

Temporary fix

Comments

  • This change of behaviour is expected, and this is now the
    correct compiler behaviour starting with XL Fortran V14.1 .  The
    reason for the change was to ensure that XLF compiles the
    preprocessed source with the correct Fortran compiler default
    options.  This keeps the behaviour consistent when recompiling
    preprocessed files, which now have the correct language level
    file suffix.  For example:
    
     $ xlf x.f90
        ==> Picks the F90 defaults.  Equivalent to 'xlf90 x.f90'
     $ xlf x.F90
        ==> Picks the F90 defaults.  Equivalent to 'xlf90 x.F90'
     $ xlf -d x.F90
        ==> Picks the F90 defaults.
             - Equivalent to 'xlf90 Fx.f90' (with V14.1)
             - Equivalent to 'xlf Fx.f' (with V13.1 and older)
    
    The problem with the last command above is that previous
    compilers would generate a file named 'Fx.f', which would have
    had the wrong compiler default options used if a user compiled
    it again with 'xlf Fx.f' .  By making the extension of the
    generated file correspond to the original extension (with
    lowercase), the file can be compiled again with 'xlf Fx.f90' and
    use the correct compiler default options.
    
    If a workaround is required, the CPP preprocessor can be called
    explicitly, and the output name can be controlled with the -o
    option.
    

APAR Information

  • APAR number

    IV39183

  • Reported component name

    XL FORTRAN FOR

  • Reported component ID

    5725C7400

  • Reported release

    E10

  • Status

    CLOSED USE

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-04-03

  • Closed date

    2013-04-11

  • Last modified date

    2013-04-11

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

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

Fix information

Applicable component levels



Rate this page:

(0 users)Average rating

Document information


More support for:

XL Fortran for AIX
Compiler

Software version:

14.1

Reference #:

IV39183

Modified date:

2013-04-11

Translate my page

Machine Translation

Content navigation