This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch to add __builtin_printf -> fputs transformations
- To: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Subject: Re: Patch to add __builtin_printf -> fputs transformations
- From: Todd Vierling <tv at pobox dot com>
- Date: Tue, 19 Sep 2000 20:04:59 -0400 (EDT)
- cc: gcc-patches at gcc dot gnu dot org
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)