PowerPC long double

Ira Hill ijh3@ufl.edu
Sat Sep 8 08:40:00 GMT 2012


On 09/07/2012 03:55 PM, Ian Lance Taylor wrote:
> On Fri, Sep 7, 2012 at 12:08 PM, Ira Hill<ijh3@ufl.edu>  wrote:
>> Now I also can enable the "-mlong-double-128" flag which appears to give me
>> quad precision, but that produces binaries with undefined symbols on my
>> target (_q_mul, _q_add, etc..) and will not run.
> I'm not certain, but I think you need to use the -mno-xl-compat option.
>
> Ian
>
Thanks for the reply! Unfortunately, -mno-xl-compat still produces the 
_q_mul symbols.
"powerpc-wrs-vxworks-objdump -t PPC603gnu/testGCC.o | grep _q"
00000000         *UND*  00000000 _q_flt
00000000         *UND*  00000000 _q_fge
00000000         *UND*  00000000 _q_fgt
00000000         *UND*  00000000 _q_fle
00000000         *UND*  00000000 _q_div
00000000         *UND*  00000000 _q_mul

I've found another thread where a user was able to express long double 
as two doubles (__LBL_MANT_DIG__106) on PowerPC-linux: 
http://gcc.gnu.org/ml/gcc-help/2011-05/msg00200.html. I'm not sure why 
I'm not able to do the same (is it VxWorks specific?). Ultimately, I 
need higher precision for one of our robotic algorithms.

Thanks,
Ira



More information about the Gcc-help mailing list