This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[patch] newlib long long printf for rtems
- To: binutils at sources dot redhat dot com
- Subject: [patch] newlib long long printf for rtems
- From: "Aaron J. Grier" <aaron at frye dot com>
- Date: Wed, 3 Jan 2001 12:25:15 -0800
- Cc: RTEMS mailing list <rtems-users at oarcorp dot com>
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