From: Dan S. <seg...@ma...> - 2001-11-06 14:35:57
|
Hi, > The problem is taht editfns.c doesn't include <stdio.h>. Since > there is no prototype the code generated moves the double into > fp1 rather than onto the stack for varadic functions. If I > include <stdio.h> then the right code gets generated and things > seem to work ok. Argh! I must be getting old. :-/ Fifteen or twenty years ago, the first place I would have looked was the disassembly listing. [ editing, compiling, linking, testing ] That did it. I'm surprised that no one has found this before. Surely other architectures (Sparc? Alpha? HP PA?) must have this property. OTOH, I bet that gcc handles sprintf as a special case on those boxen anyway. "It works This Way, why should I do it the Right Way?" :-/ Thanks, \p. What's the best way to get this fix merged in? Shall I send it to bug...@gn...? Dan -- Dan Sommers, Esq., Ltd., The Third mailto:seg...@ma... |