This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: bug in sprintf
- From: "Daniel Lidsten" <Daniel dot Lidsten at combitechsystems dot com>
- To: "Andrew Lunn" <andrew dot lunn at ascom dot ch>
- Cc: "eCos Disuss" <ecos-discuss at sources dot redhat dot com>
- Date: Tue, 3 Jun 2003 09:05:01 +0200
- Subject: RE: [ECOS] bug in sprintf
> > Indeed. More importantly, it's curious why the 'size_t' branch of
> > that conditional is even being executed for simple signed values.
>
> I don't think it is. Looking at the asm, it looks like the
> size_t code has invoked a bug in the optimizer which caused
> it to get the signed branch of the condition wrong.
Do you mean that there is a bug in the compiler which causes this to
appear? I am using powerpc-eabi-gcc version 2.95.2, which is quite old.
Is there any meaning to upgrade to a newer version to get rid of this
problem or is this something that can be fixed in the eCos repository?
Regards, Daniel Lidsten
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss