This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: Patch for newlib/libc/time
- From: Corinna Vinschen <vinschen at redhat dot com>
- To: newlib at sourceware dot org
- Date: Tue, 14 Jun 2011 16:30:33 +0200
- Subject: Re: Patch for newlib/libc/time
- References: <4DE34BB4.1000907@munts.net>
- Reply-to: newlib at sourceware dot org
On May 30 09:48, Philip Munts wrote:
> 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().
Thanks, I applied a variation of your patch. I left the testcase in
strftime.c alone, and I defined sscanf to siscanf in tzset_r.c instead
of replacing every call.
> 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.
Well, just go ahead. These changes don't affect big targets a lot, but
they seem to make a lot of sense for small targets.
Thanks,
Corinna
--
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat