This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/32357] MVBITS gives wrong-code on big-endian with -fdefault-integer-8
- From: "fxcoudert at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Jul 2007 12:29:59 -0000
- Subject: [Bug fortran/32357] MVBITS gives wrong-code on big-endian with -fdefault-integer-8
- References: <bug-32357-14284@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #11 from fxcoudert at gcc dot gnu dot org 2007-07-11 12:29 -------
The call to MVBITS is translated as a function call:
_gfortran_mvbits_i8 (&C.913, &C.914, &C.915, &i, &C.916);
where all C.* (and i) variables are int8, while the library prototype for the
function is:
_gfortran_mvbits_i8 (const GFC_INTEGER_8 *from, const GFC_INTEGER_4
*frompos,
const GFC_INTEGER_4 *len, GFC_INTEGER_8 *to, const GFC_INTEGER_4
*topos)
We need to make a choice between these two, and decided whether all arguments
have the same type (my preferred choice) or if some have a fixed type. In all
cases, uses of MVBITS with different mixed kinds should be audited, for there
might be a few other inconsistencies lurking here.
--
fxcoudert at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |fxcoudert at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2007-06-15 19:19:03 |2007-07-11 12:29:59
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32357