<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>114367</bug_id>
          
          <creation_ts>2005-12-03 10:04 0000</creation_ts>
          <short_desc>g77 gcc-3.x.x: increase the number of possible file unit numbers for g77</short_desc>
          <delta_ts>2006-03-16 00:52:45 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Core system</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>markusle@gentoo.org</reporter>
          <assigned_to>toolchain@gentoo.org</assigned_to>
          <cc>je_fro@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>markusle@gentoo.org</who>
            <bug_when>2005-12-03 10:04:18 0000</bug_when>
            <thetext>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 &quot;info g77&quot; 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&apos;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&apos;ve attached a patch that accomplishes 
this and works fine on my system (pentium 4m, gcc-3.4.4-r1).  
Unfortunately, I don&apos;t know the internals of gcc very well and can&apos;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.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>markusle@gentoo.org</who>
            <bug_when>2005-12-03 10:06:06 0000</bug_when>
            <thetext>Created an attachment (id=73990)
patch to increase the number of available file descriptors for g77
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2005-12-03 12:44:37 0000</bug_when>
            <thetext>added to patch list for 3.3.6/3.4.4 ... it&apos;ll be in next patchset we roll</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>markusle@gentoo.org</who>
            <bug_when>2005-12-03 13:22:59 0000</bug_when>
            <thetext>Thanks for the immediate response and great:) 
 
cheers, 
Markus </thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>73990</attachid>
            <date>2005-12-03 10:06 0000</date>
            <desc>patch to increase the number of available file descriptors for g77</desc>
            <filename>gcc-mxunit-increase-gentoo.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIGdjYy0zLjQuNC9saWJmMmMvbGliSTc3L2Zpby5oCTIwMDItMDYtMDEgMTI6Mzg6MjkuMDAw
MDAwMDAwICswMDAwCisrKyBnY2MtMy40LjQtcGF0Y2hlZC9saWJmMmMvbGliSTc3L2Zpby5oCTIw
MDUtMTItMDMgMTE6NTM6MjMuMDAwMDAwMDAwICswMDAwCkBAIC04Niw3ICs4Niw3IEBACiAjZGVm
aW5lIGVycmZsKGYsbSxzKSBkbyB7cmV0dXJuIGVycl9fZmwoKGludClmLG0scyk7fSB3aGlsZSgw
KQogCiAvKlRhYmxlIHNpemVzKi8KLSNkZWZpbmUgTVhVTklUIDEwMAorI2RlZmluZSBNWFVOSVQg
NTEyCiAKIGV4dGVybiBpbnQgZl9fcmVjcG9zOwkJLypwb3NpdGlvbiBpbiBjdXJyZW50IHJlY29y
ZCAqLwogZXh0ZXJuIGludCBmX19jdXJzb3I7CQkvKiBvZmZzZXQgdG8gbW92ZSB0byAqLwo=
</data>        

          </attachment>
    </bug>

</bugzilla>