Printf / 64-bit bug
J. Johnston
jjohnstn@redhat.com
Mon Nov 10 15:30:00 GMT 2003
Fixed.
-- Jeff J.
Jon Beniston wrote:
> 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
>
>
More information about the Newlib
mailing list