This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


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

Re: g77 of egcs-1.0.2/1.0.3a returns exit code 1 for argument typemismatch


>  I got a non-zero exit status from g77 in egcs-1.0.2 and
>  egcs-1.0.3a for a Fortran source shown below, and could
>  not get any object.
>   Is this a bug in g77/egcs or an expected behavior ?

      subroutine AA( a,b,c,i )
...
      subroutine BB( a,b,c,d )
...
      call AA( a,b,c,d )
...

Yes, this is not allowed and hence g77's behaviour is expected.   
However, when compiling the routines separately, this cannot be  
detected - that's why you normally get away with it.  You can get it  
compiled using -fno-globals, but you're on your own wrt correct  
execution of this code.

Note that the error message explains how you can find this (and  
more) information:  [info -f g77 M GLOBALS].

HTH,
Toon.


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