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: gcc-3.3.3 and softfloat?


On Fri, 3 Dec 2004, Dan Kegel wrote:

$TARGET-gcc -dM -E -xc /dev/null | grep FLOAT

Cool, got to remember that one :-)


Oh, and the test might be broken for gcc 3.3.x and higher. I did it with my 3.2.3 based gcc, but looking into the 3.3.3 sources I found that _SOFT_FLOAT is only used for rs6000 and the 386 rtems gcc. ARM seems to define __SOFTFP__ now, quoting from gcc/config/arm/arm.h:

        if (TARGET_SOFT_FLOAT)                          \
          builtin_define ("__SOFTFP__");                \

So the test should go like this:

$TARGET-gcc -dM -E -xc /dev/null | grep SOFTFP

Regards,
Marius

--
Marius Groeger <mgroeger@sysgo.com>
SYSGO AG                      Embedded and Real-Time Software
Voice: +49 6136 9948 0                  FAX: +49 6136 9948 10
www.sysgo.com | www.elinos.com | www.osek.de | www.imerva.com


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