This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/30432] gfortran.dg/c_by_val_1.f fails on ia64-*-*, problem with %VAL
- From: "sje at cup dot hp dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Jan 2007 16:58:29 -0000
- Subject: [Bug fortran/30432] gfortran.dg/c_by_val_1.f fails on ia64-*-*, problem with %VAL
- References: <bug-30432-3107@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from sje at cup dot hp dot com 2007-01-17 16:58 -------
The code in comment #5 works fine. In pure C cases, if a prototype has been
seen when you get to the call, the floating point value goes into a FP reg. If
you haven't seen a prototype then the value goes into both an FP reg -and- a
general register. In the Fortran case the floating point value is only going
into a general register. I think the only way to reproduce this in C is to
have a protype for the f_to_f function that looks like f_to_f (int, ...).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30432