This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: H8300: converting unsigned int to float
- To: Manfred Metzger <ManfredMetzger at gmx dot de>
- Subject: Re: H8300: converting unsigned int to float
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Mon, 30 Aug 1999 21:07:13 -0600
- cc: egcs-bugs at egcs dot cygnus dot com
- Reply-To: law at cygnus dot com
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