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]
Other format: [Raw text]

Re: target/4731: SPARC gives wrong output on simple combination of Fortran main program and C functions


davem@gcc.gnu.org wrote:

> Synopsis: SPARC gives wrong output on simple combination of Fortran main program and C functions
> 
> State-Changed-From-To: feedback->closed
> State-Changed-By: davem
> State-Changed-When: Sat Jun 22 05:15:13 2002
> State-Changed-Why:
>     3 months and no response to feedback.  User can reopen
>     if he still cares.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=4731

Huh ?  Was this one still open ?  I've known the solution to it (user
error) for months: The prototype of the C function doesn't match the
expectation of the Fortran-side caller.

To provide correct C prototypes, one should use f2c (as documented in
the g77 manual) instead of trying to guess :-)

-- 
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]