[prev in list] [next in list] [prev in thread] [next in thread]
List: gcc-bugs
Subject: Re: H8300: converting unsigned int to float
From: Jeffrey A Law <law () cygnus ! com>
Date: 1999-08-31 3:07:13
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic