Patch for newlib/libc/time

Howland Craig D (Craig)
Mon Jun 6 19:59:00 GMT 2011

I suggest that this is not the best way to handle this.  A drawback to
approach is that someone that is using floating-point-capable versions
print and scan would be stuck with a larger build because the
routines get linked as supporting routines.  Wouldn't this be better as
a library build option?  (Isn't there one already?)

-----Original Message-----
From: []
On Behalf Of Philip Munts
Sent: Monday, May 30, 2011 3:48 AM
Subject: Patch for newlib/libc/time

Here is a patch to change xprintf() to xiprintf() and sscanf() to
siscanf() in all of the source files in newlib/libc/time.  The rationale
for this is to prevent linking floating point libraries in (at least)
bare machine ARM target programs that call time functions like ctime().

There are other places in newlib this can be done safely, but this is a
much as I am brave enough to submit for now.


More information about the Newlib mailing list