This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: SV: Problems with arm-elf with soft-float


> >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


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