------- Comment #5 from kargl at gcc dot gnu dot org  2006-08-25 16:38 -------

> I don't understand what you mean. The fortran code calls the test function,
> which is written in C (called test_ due to name mangling). test_ is indeed a
> variable-args function:
> void test_(int *test, ...).

Fortran has no concept of a varargs function.  It does not build an
appropriate interface for the function.

> Also, this code works as expected on 32-bit x86 machines.

NO, it *appears* to work, and this is most likely due to sizeof(int)
== sizeof(void *).  This is not true on x86_64, so your stack alignment
is FUBAR.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28818

Reply via email to