This is the mail archive of the gcc@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: Structure Return Testcase


Richard Henderson wrote:

> Also, I seem to recall that Craig Burley mentioned that there
> was some case for which Fortran needed safe handling of overlap.
> I don't know what's used in f771 at the moment -- perhaps these
> things are just mishandled currently.

What I recall from Craig's test cases is that they specifically
overwrote part of a complex argument in the assignment of the function
result, i.e. something like:

      REAL R
      COMPLEX C
      EQUIVALENCE(R,C)
      ...
      R = ABS(C)
      ...

The legality of this is doubtful.  As I'm attending the 156th meeting of
the Fortran Standardization Committee next week, I'll dig up the
examples and ask around.

-- 
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
Join GNU Fortran 95: http://g95.sourceforge.net/ (under construction)


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