Skip to content
Jim MacArthur edited this page Feb 19, 2016 · 3 revisions

GFortran 'extra-legacy' branch

This is a fork of GCC which mainly affects GFortran. It provides basic support for some features which were accepted by vendor-specific Fortran implementations. These have been implemented to compile one specific codebase, and may not be complete or compliant to any particular standard in some cases. If you use this fork, you do so at your own risk and you should verify the output is correct manually.

The features added include:

  • STRUCTURE and RECORD, including the use of '.' as a member access operator
  • The ".xor." operator
  • More relaxed rules for comparing and assigning types, such as characters to integers and Hollerith constants to characters
  • Line continuation for 'include' statements
  • The AUTOMATIC statement
  • Under-specified array references, so an array declared as A(3,4,5) can be accessed as A(2).
  • Repeated declarations of a variable, if the types are compatible.

The currently active branch is jmac/legacy-support-4_8-L which is based on the GCC 4.8 release.

While we would like to have these features included in the main GCC project, there are good reasons for the GCC maintainers not to accept these features; adding features increases the maintenance burden and there is little evidence for their use because most of the projects using these features are closed-source. If you need to use any of the features listed above, we would be interested in hearing from you so we can gauge how common their use is - please send an email to [email protected].

Clone this wiki locally