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]
Other format: [Raw text]

Printf / 64-bit bug


Hi,

I think I've noticed a bug in libc/stdio/vfprintf.c that causes it to
use 
64-bit arithmetic even though it is not configured to. At the top of the

file, we have

#define _NO_LONGLONG
#if defined WANT_PRINTF_LONG_LONG && defined __GNUC__
# undef _NO_LONGLONG
#endif

However, later on, there are a couple of uses of the following macro:

#ifndef _NO_LONG_LONG

Which I presume should be:

#ifndef _NO_LONGLONG

This bug obviously has a significant code-size penalty on my 16-bit
target.

Cheers,
JonB



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