[PATCH, Fortran] Four small DEC extensions

Fritz Reese fritzoreese@gmail.com
Wed Oct 12 16:39:00 GMT 2016


Here I submit for review four small extensions to the GNU Fortran
frontend for compatibility with legacy code. I figure it might be a
nice change of pace from my larger patches. Never fear, for I have
more large patches to come, which I will continue to submit
one-at-a-time.

Each extension is enabled with its own compile flag, and each are
enabled along with -fdec. They are fairly self-explanatory.

1. [-fdec-feed] Treat form feed characters as whitespace.
2. [-fdec-type-print] Treat TYPE as an alias for PRINT where applicable.
3. [-fdec-loc-rval] Allow %LOC() as an rvalue, equivalent to using the
LOC() intrinsic.
4. [-fdec-logical-xor] Enable .XOR. as a logical operator.

Feel free to comment on/question/approve each patch individually as
desired. They are attached as sequential patch files for ease of
review. Bootstraps & regtests on x86_64-redhat-
linux. OK for trunk?

---
Fritz Reese
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-dec-feed.patch
Type: application/octet-stream
Size: 6639 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20161012/444ef8fd/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-dec-type-print.patch
Type: application/octet-stream
Size: 11196 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20161012/444ef8fd/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-dec-loc-rval.patch
Type: application/octet-stream
Size: 5704 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20161012/444ef8fd/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-dec-logical-xor.patch
Type: application/octet-stream
Size: 6320 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20161012/444ef8fd/attachment-0003.obj>


More information about the Fortran mailing list