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

Jeff Johnston jjohnstn@redhat.com
Wed Jul 7 00:59:00 GMT 2004


The code for setting long long io has changed slightly in configure.host so I 
modified your change appropriately and checked it in.

-- Jeff J.

cgd@broadcom.com wrote:
> 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
> 



More information about the Newlib mailing list