[PATCH] turn on stdio long long support for all MIPS ELF targets

cgd@broadcom.com cgd@broadcom.com
Sat Jul 3 10:51:00 GMT 2004

I've been using the following patch for a Long Time to turn on 'long
long' support in stdio for all MIPS ELF targets.

I think this is a reasonable thing to do globally for all MIPS ELF
targets, because, well, at this point people really do expect '%llx'
to work (at least, that's been my experience w/ tools users).

If y'all think otherwise, please change 'mips*-*-elf*' to
'mipsisa64sb1*-*-elf' in the patch below.

(Been tested w/ sb1-elf a.k.a. mipsisa64sb1-elf for a Long Time.)

[ newlib/ChangeLog ]
2004-07-02  Chris Demetriou  <cgd@broadcom.com>

        * configure.host (mips*-*-elf*): Add -DWANT_PRINTF_LONG_LONG
        to newlib_cflags.

diff -u -p -r1.1.1.5 configure.host
--- newlib/newlib/configure.host	2004/05/29 06:35:39
+++ newlib/newlib/configure.host	2004/07/03 01:05:30
@@ -538,6 +538,10 @@ case "${host}" in
 	newlib_cflags="${newlib_cflags} -DWANT_PRINTF_LONG_LONG -DMISSING_SYSCALL_NAMES"
+  mips*-*-elf*)
+	newlib_cflags="${newlib_cflags} -DMISSING_SYSCALL_NAMES"
+	newlib_cflags="${newlib_cflags} -DWANT_PRINTF_LONG_LONG"
+	;;
 	# We need every symbol 32-bit aligned, so the invalid

More information about the Newlib mailing list