This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Re: [patch] newlib long long printf for rtems
- To: Nick Clifton <nickc at redhat dot com>
- Subject: Re: [patch] newlib long long printf for rtems
- From: "J. Johnston" <jjohnstn at cygnus dot com>
- Date: Fri, 05 Jan 2001 20:02:18 -0500
- CC: newlib at sources dot redhat dot com
- Organization: Red Hat Inc.
- References: <200101052142.NAA01958@elmo.cygnus.com>
Nick Clifton wrote:
>
> [Forwarded from binutils list]
>
> --------------------------------------------
>
> From: "Aaron J. Grier" <aaron at frye dot com>
> Date: Wed, 3 Jan 2001 12:25:15 -0800
>
> this trivial patch adds support for long long (%lld) formatting to
> newlib's printf and friends when configured for RTEMS. I do not have
> commit priviliges, so somebody will have to check this in for me.
>
> Wed Jan 3 12:20:00 PST 2001 Aaron J. Grier <aaron@frye.com>
> * src/newlib/configure.host (*-*-rtems*): add printf long long
> support for RTEMS
>
> --- src/newlib/configure.host.orig Wed Jan 3 12:16:13 2001
> +++ src/newlib/configure.host Wed Jan 3 12:17:01 2001
> @@ -337,7 +337,7 @@
> #
> # NOTE: When newlib malloc uses a semaphore, RTEMS will switch to that.
> *-*-rtems*)
> - newlib_cflags="${newlib_cflags} -DHAVE_GETTIMEOFDAY -DMALLOC_PROVIDED -DEXIT_PROVIDED -DMISSING_SYSCALL_NAMES -DSIGNAL_PROVIDED -DREENTRANT_SYSCALLS_PROVIDED -DHAVE_OPENDIR -DNO_EXEC"
> + newlib_cflags="${newlib_cflags} -DHAVE_GETTIMEOFDAY -DMALLOC_PROVIDED -DEXIT_PROVIDED -DMISSING_SYSCALL_NAMES -DSIGNAL_PROVIDED -DREENTRANT_SYSCALLS_PROVIDED -DHAVE_OPENDIR -DNO_EXEC -DWANT_PRINTF_LONG_LONG"
> ;;
> # VxWorks supplies its own version of malloc, and the newlib one
> # doesn't work because VxWorks does not have sbrk.
>
> --
> Aaron J. Grier | Frye Electronics, Tigard, OR | aaron@frye.com
Patch applied.
-- Jeff J.