This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: target/4731: SPARC gives wrong output on simple combination of Fortran main program and C functions
- From: Toon Moene <toon at moene dot indiv dot nluug dot nl>
- To: davem at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, sabbahem at bcpl dot net
- Date: Sat, 22 Jun 2002 15:43:24 +0200
- Subject: Re: target/4731: SPARC gives wrong output on simple combination of Fortran main program and C functions
- Organization: Moene Computational Physics, Maartensdijk, The Netherlands
- References: <20020622121516.29412.qmail@sources.redhat.com>
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)