[Bug fortran/32357] bad result from mvbits in mips version of gfortran with -fdefault-integer-8

2007-06-15 Thread kargl at gcc dot gnu dot org


--- Comment #1 from kargl at gcc dot gnu dot org  2007-06-15 16:16 ---
Is mips a big endian cpu?  I can't reproduce this on 
i386 or x86_64 hardware.


-- 


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



[Bug fortran/32357] bad result from mvbits in mips version of gfortran with -fdefault-integer-8

2007-06-15 Thread michael dot a dot richmond at nasa dot gov


--- Comment #2 from michael dot a dot richmond at nasa dot gov  2007-06-15 
16:20 ---
(In reply to comment #1)
 Is mips a big endian cpu?  I can't reproduce this on 
 i386 or x86_64 hardware.

mips is big endian


-- 


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



[Bug fortran/32357] bad result from mvbits in mips version of gfortran with -fdefault-integer-8

2007-06-15 Thread michael dot a dot richmond at nasa dot gov


--- Comment #3 from michael dot a dot richmond at nasa dot gov  2007-06-15 
16:29 ---
(In reply to comment #1)
 Is mips a big endian cpu?  I can't reproduce this on 
 i386 or x86_64 hardware.

mips can be implemented as either big endian or little endian. I have an SGI
box, which is a big endian implementation. DEC built a line of mips
workstations that were little endian. There are separate versions of Linux for
each endianness. 


-- 


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



[Bug fortran/32357] bad result from mvbits in mips version of gfortran with -fdefault-integer-8

2007-06-15 Thread tbm at cyrius dot com


--- Comment #4 from tbm at cyrius dot com  2007-06-15 19:18 ---
I can confirm that on mips-linux-gnu (big-endian) 0 is printed while 1 is
printed on mipsel-linux-gnu (little-endian).  This happens both with 4.1
and current 4.3.


-- 

tbm at cyrius dot com changed:

   What|Removed |Added

 CC||tbm at cyrius dot com


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



[Bug fortran/32357] bad result from mvbits in mips version of gfortran with -fdefault-integer-8

2007-06-15 Thread tbm at gcc dot gnu dot org


-- 

tbm at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever Confirmed|0   |1
 GCC target triplet||mips-*
  Known to fail||4.1.0 4.2.0 4.3.0
   Last reconfirmed|-00-00 00:00:00 |2007-06-15 19:19:03
   date||


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



[Bug fortran/32357] bad result from mvbits in mips version of gfortran with -fdefault-integer-8

2007-06-15 Thread tbm at cyrius dot com


--- Comment #5 from tbm at cyrius dot com  2007-06-15 19:31 ---
I don't see this problem on powerpc which is big-endian too.


-- 


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



[Bug fortran/32357] bad result from mvbits in mips version of gfortran with -fdefault-integer-8

2007-06-15 Thread tbm at cyrius dot com


--- Comment #6 from tbm at cyrius dot com  2007-06-15 19:37 ---
(In reply to comment #5)
 I don't see this problem on powerpc which is big-endian too.

Sorry, I *do* see the problem on powerpc.


(sid)832:[EMAIL PROTECTED]: ~/src] gfortran -fdefault-integer-8 t.f90 ; ./a.out
i = 0
(sid)833:[EMAIL PROTECTED]: ~/src] gfortran t.f90 ; ./a.out
i = 1


-- 


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