This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[patch] newlib long long printf for rtems


[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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]