This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: g77 legacy features in gfortran


Timothy C Prince wrote:
Regarding Tim's remarks: In fixed format, everything after column 78
(free format: 132) is ignored by default. This can be tuned via -ffixed-line-length-n (or -ffree-line-length-n); some programs make use of this by putting comments, a "&" or similar in columns > 78.


_______________________________---
Choice of column 78 is unusual. Fortran standard would ignore
everything after column 72, in fixed format. I agree that I don't
expect g77 to be standard conforming there, which could make it
difficult to achieve g77 compatibility. Tim Prince

g77, like any Fortran 77 compiler uses 72 columns by default.


Noone has answered Jack's inquiry to COMMON and EQUIVALENCE yet: yes they are supported in gfortran, even if used together, at least since 4.1, maybe even 4.0, I don't remember for sure.

For the general question if gfortran can replace g77, please have a look at PR19292 "g77 features lacking in gfortran" which FX closed on Aug 16th. We are fairly confident that, aside from the inevitable bugs, gfortran can replace g77 for all users. (Notably, things like -fugly-comma that we decided not to support in gfortran seem to be used by nobody.)

Best regards,
- Tobi


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]