This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: H8300: converting unsigned int to float



  In message <37AF1D8E.3F6F0591@gmx.de>you write:
  > Hi!
  > 
  > I am using GCC 2.95 for the Hitachi H8/300 on a Linux system
  > with glibc-2.1.
  > Compiling the following program does not work:
  > 
  > unsigned int uc;
  > float f1;
  > 
  > int main ()
  > {
  >   f1 = uc;
  >   return 0;
  > }
  > 
  > It fails with
  > 
  > pc1:/root # h8300-hms-gcc -v -save-temps test.c
  > Reading specs from /usr/lib/gcc-lib/h8300-hms/2.95/specs
  > gcc version 2.95 19990728 (release)
  > (...)
  >  /usr/h8300-hms/bin/as -o test.o test.s
  > test.s: Assembler messages:
  > test.s:10: Error: cannot create floating-point number
I believe this is due to a bug in gcc-2.95 -- you're using gcc-2.95 to build
your h8300-hms cross-compiler, right?

The good news is if you build your h8300-hms cross compiler with gcc-2.95.1
I believe it will work correctly.

jeff


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]