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 bug report


Hello Tim,

Thanks very much for your fast response. I agree that I have to modify
the code, to conform to the Fortran standards.

        thanks again, cheers, Jan

On Tue, 2 Nov 1999 N8TM@aol.com wrote:

> In a message dated 11/2/99 7:35:38 AM EST, Jan.van.Eldik@cern.ch writes:
> 
> > Addition of "-ffloat-store" also gives the correct result.
> the
> resulting array overwrites the input array:
>       CALL ETMUMA(DERA,POIA,POIA)
> ...
>       SUBROUTINE ETMUMA(DER,WGTI,WGTO)
> *   Calcul le produit WGTO = DER(trans)*WGTI*DER
> 
> This is specifically not permitted by the Fortran standards, although this 
> practice was followed as a matter of routine for many years.  If there is 
> failure when the arrays are kept separate, a bug report would be justified.  
> IMO it is likely that it could be made to work by putting a function call or 
> even by accessing COMMON between the section which uses WGTI and the section 
> which uses WGTO, but there is no guarantee.  Commercial compilers generally 
> require a special compiler option, analogous to gcc's -fno-strict-aliasing 
> (which I don't expect to work here, as it applies to arrays of different type 
> and not to g77).
> 
> Tim
> tprince@computer.org
> 


   Jan van Eldik

   email: Jan.van.Eldik@cern.ch  tel: +41 - 22 - 767 4024 


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