This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
[PATCH] turn on stdio long long support for all MIPS ELFtargets
- From: cgd at broadcom dot com
- To: newlib at sources dot redhat dot com
- Date: 02 Jul 2004 18:26:11 -0700
- Subject: [PATCH] turn on stdio long long support for all MIPS ELFtargets
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.)
chris
--
[ 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 1.1.1.5
+++ newlib/newlib/configure.host 2004/07/03 01:05:30
@@ -538,6 +538,10 @@ case "${host}" in
mips64vr*-*-*)
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"
+ ;;
mmix-*)
syscall_dir=syscalls
# We need every symbol 32-bit aligned, so the invalid