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] | |
Hi all, [yes, another "oh I wanted to do that before stage2 closes" patch] I suggest that we create a header file common to the front-end and library, to easily share common information without the need to keep information (spread over headers and source files) in sync manually. This will have a nice impact on maintainability, with less potential to screw things up. Attached is my proposal for doing so. For now, I gathered constants and enums that were clearly copy-pasted (like the CONVERT option values, the STD integer flags, the possibles values for the -ffpe-trap option) and things that were spread around (preconnected unit numbers for default input, output and error). The common header is created as libgfortran/libgfortran_frontend.h; other naming suggestions are of course welcome. As this patch is moving things around, the ChangeLog entries are rather tedious to write, and I'll do it in parallel with comments/reviewing. The patch was bootstrapped and regtested on x86_64-linux. Since this is mostly moving things around, I'd like your comments on whether this is something we want for gfortran; I am convinced that it's a clear win, but please step in and give your opinion. So, if a consensus appears [1], I'll commit the patch in a few days, taking into account all amendments made at that point. Thanks for taking time to answer, even if to say "don't know", FX [1] or if noone seems to care ;-) :ADDPATCH fortran:
Attachment:
common_header.diff
Description: Binary data
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |