This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Patch to add __builtin_printf -> fputs transformations


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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]