Re: [Cegcc-devel] %f problem with C99 conformant printf

2009-04-22 Thread Pierre Ynard
> We have talked about double alignment before, could this be the > problem? Doubles must be 8 byte aligned on CE. Maybe va_arg doesn't to > align properly to the next 8 byte boundary when it's retrieving a > double? Either that, or the double isn't even stored with an 8 byte > alignment when pas

Re: [Cegcc-devel] %f problem with C99 conformant printf

2009-04-22 Thread Carsten Sørensen
On Tue, Apr 21, 2009 at 21:31, Danny Backx wrote: > I don't think it's a printf issue. > > The statement >        fprintf(f, "foo %d %f %d\n", 34, 12.0, 67); > > prints >        foo 34 0.00 1076363264 > > so I'm inclined to think that the varargs handling is off after a %f. > Don't know what c