This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


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

[MIPS32] Can't get printf to work with %f && %lld


Hi list,

I'm currently working on a MIPS32 processor and it seems that I can't get printf to work with float, long long, double, and long double.
I'm using the 1.17 version of newlib, and I got the same behavior with the 1.16 version. Here are my configurations :


GCC 4.3.2 :

Configured with: configure --prefix=/Users/xguerin/Workspace/ Toolchains/mips-sls-dnaos.toolchain --target=mips-sls-dnaos --enable- multilib --enable-languages=c --with-newlib

The mips-sls-dnaos is the same configuration as mips-elf. It only enables the support of my OS. I'm using the following multilib configuration: msoft-float EL/EB.

Newlib 1.17.0 :

configure --prefix=/Users/xguerin/Workspace/Toolchains/mips-sls- dnaos.toolchain --enable-multilib --enable-newlib-io-long-long -- enable-newlib-io-long-double --enable-newlib-io-c99-formats --disable- newlib-may-supply-syscalls --disable-newlib-supplied-syscalls --enable- newlib-multithread

The mips-sls-dnaos target support my OS. Its files are place in the libc/sys directory. The ${newlib_cflags} only contains "-G0 - DHAVE_NANOSLEEP".

I regression-tested those types without printing them, and them seem to work fine. I think it's important to notice that the same printf() with the same newlib configuration is working perfectly on the ARM architecture.

Any insight ?

Thank you for your help,
Xavier


----- Xavier Guérin - Doctoral student TIMA Laboratory, SLS Group 46, av. Félix Viallet, 38000 GRENOBLE, FR Mail : xavier.guerin@imag.fr Phone : +33(0)4 76 57 47 59 Ad Astra Per Aspera Triste e' quel discepolo che non avanza il suo maestro


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