Patch to add __builtin_printf -> fputs transformations

Todd Vierling tv@pobox.com
Tue Sep 19 17:00:00 GMT 2000


On Tue, 19 Sep 2000, Kaveh R. Ghazi wrote:

: I tried making the wrapper be static-inline and extern-inline, and it
: works for C, but then the C++ front-end never sees stdout.

That's odd.  This needs to be inline, because not all object formats are
smart enough to drop extra copies, and g++ _should_ know how to handle that
correctly.

(IMNSHO, more blind uses of `.linkonce' as a workaround are unacceptable;
that's a very format-dependent and linker-dependent thing, and I'm not too 
happy about its being used for C++ implicits in the first place.  8^)

-- 
-- Todd Vierling (tv@pobox.com)



More information about the Gcc-patches mailing list