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("string\n") -> puts("string")


On Fri, 22 Sep 2000, Kaveh R. Ghazi wrote:

: I suppose you could argue that the second string would waste space

It can--meaning that, regardless of this debate, this optimization must have
an option to turn it off (or on, if it defaults to off).  Additionally, a
-Os compile must check to see whether the unchopped string is used in the
same compilation unit, and not do the transform if so.

-- 
-- 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]