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]

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



$ arm-elf-gcc -msoft-float  hello.c
/cygdrive/c/arm-elf/bin/../lib/gcc-lib/arm-elf/3.3/../../../../arm-elf/bin/ld: E
RROR: /cygdrive/c/arm-elf/bin/../lib/gcc-lib/arm-elf/3.3/libgcc.a(_mul_df.o) use
s hardware FP, whereas a.out uses software FP
File format not recognized: failed to merge target specific data of file /cygdri
ve/c/arm-elf/bin/../lib/gcc-lib/arm-elf/3.3/libgcc.a(_mul_df.o)
/cygdrive/c/arm-elf/bin/../lib/gcc-lib/arm-elf/3.3/../../../../arm-elf/bin/ld: E
RROR: /cygdrive/c/arm-elf/bin/../lib/gcc-lib/arm-elf/3.3/libgcc.a(_si_to_df.o) u
ses hardware FP, whereas a.out uses software FP
.....

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