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: newlib on powerpc-eabi with soft-float




Christopher Jenkins wrote:
> 
> Hi,
> 
> I'm trying to build a toolchain for a powerpc-eabi target on an RS/6000 AIX
> host. I can successfully build and use the following:
> 
> binutils-2.12
> gcc-2.95.3
> newlib-1.10.0
> 
> However, the target processor (MC8260) has no floating point unit 

Are you sure about that?  According to this:

http://e-www.motorola.com/brdata/PDFDB/docs/MPC8260TS.pdf
and my paper copy of a Motorola PowerPC selector guide 
it has an FPU.   Sounds more like the startup code is 
not enabling the FPU to me.

> and I'm
> not sure whether Newlib is aware of this. Specifically, in setjmp.S, there
> are a few lines of code to save the floating point registers (which the
> MC8260 does not have) wrapped in an #ifndef _SOFT_FLOAT.  I'm guessing that
> _SOFT_FLOAT should be being defined somewhere, but I'm not sure where. Is
> there any option that I can give to the configuration script such that this
> macro will be defined? I'm not too keen on hacking the code since I'm sue
> that there must be another way...
> 
> Incidentally, I already give the --nfp switch to the configuration scripts
> of binutils, gcc and newlib, but this doesn't seem to have much of an
> effect.
> 
> Cheers,
> 
> Chris
> 
> Chris Jenkins
> IBM UK Laboratories
> Chris.Jenkins@uk.ibm.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

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel@OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985

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