| Summary: | g77 gcc-3.x.x: increase the number of possible file unit numbers for g77 | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Markus Dittrich (RETIRED) <markusle> |
| Component: | [OLD] Core system | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
| Status: | RESOLVED FIXED | ||
| Severity: | enhancement | CC: | je_fro |
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | patch to increase the number of available file descriptors for g77 | ||
Created attachment 73990 [details, diff]
patch to increase the number of available file descriptors for g77
added to patch list for 3.3.6/3.4.4 ... it'll be in next patchset we roll Thanks for the immediate response and great:) cheers, Markus |
Currently, fortran code compiled with g77 (gcc-3.x) can only use a maximum of 100 file units due to a hard coded limit #define MXUNIT 100 in gcc-3.x.x/libf2c/libI77/fio.h (see "info g77" and MXUNIT for more details). The quantum chemistry code sci-chemistry/gamess which I am maintaining has recently introduced new functionality which requires access to more than 100 file units (300, to be precise) and these routines, therefore, don't run properly with our current g77 setup. Future development of the code will likely increase the number of routines that will have to have access to larger file units. I would therefore like to ask if it would be possible to increase the number of available file units in our g77 installs and I've attached a patch that accomplishes this and works fine on my system (pentium 4m, gcc-3.4.4-r1). Unfortunately, I don't know the internals of gcc very well and can't judge if this patch introduces any unpleasant side effects. If not, I would be very grateful if you could consider including this change. Reproducible: Always Steps to Reproduce: 1. 2. 3.