SV: Problems with arm-elf with soft-float
Richard Earnshaw
rearnsha@arm.com
Tue May 6 16:52:00 GMT 2003
> >That's what I did, and I got no errors
>
> Hmm.... still does not work.
>
> Here is how I test the compiler:
>
> hello.c:
>
> int main(int argc, char **argv)
> {
> double x=0;
> double y=5;
> return (int)x*y;
> }
>
This is an object file marking bug. An arm-elf-gcc compiler is soft-float
by default, but objects compiled with the default options are effectively
marked by the assembler as being hard-float (since not-marked is identical
to hard-float). The best solution is to drop -msoft-float from your
compilation options -- it won't alter the code you get.
R.
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
More information about the crossgcc
mailing list