public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Samuel Ziegler <sam@xpedion.com>
To: gcc-help@gcc.gnu.org
Subject: g77 3.4.(2|3): Failure when calling gcc 3.4.(2|3) functions
Date: Wed, 17 Nov 2004 01:24:00 -0000	[thread overview]
Message-ID: <1100654687.5347.73.camel@thedude.ziegler.org> (raw)

Hi... I'm not sure if I should ask this here or on the fortran mailing
list.  I'm having this issue where g77 3.4.x code calling gcc 3.4.x
code.  

Here is the C function declaration:
int    set_env_current_step(n)
int *n;
{
	...
}

Here is the Fortran call of it:
integer ierr,set_env_current_step
ierr=set_env_current_step(n-1)

With gcc 3.3.3 and g77 3.3.3, everything works fine.  However, with g77
3.4.x, n gets the int value passed to it instead of the pointer to the
int value.

When I tried recompiling using gcc 3.4.2 and g77 3.3.3, everything
worked fine.

It seems to be this specific function, for some reason.  There are lots
of other calls from the fortran code to the C code which work without
issue.

Also, when I tried to create a small test case, I couldn't recreate the
issue.

I have plenty of debug info, assembler output, but was unsure what was
required.

Thanks for any help!
  - Sam

                 reply	other threads:[~2004-11-17  1:24 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1100654687.5347.73.camel@thedude.ziegler.org \
    --to=sam@xpedion.com \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).