This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Reduce size footprint of empty strings.
On 2/25/10 2:09 PM, Steven Bosscher wrote:
On Thu, Feb 25, 2010 at 11:54 AM, Maxim Kuvyrkov<maxim@codesourcery.com> wrote:
OK for 4.6?
The patch is simple enough to be considered for 4.5, but this is RMs' call.
It may add some compile time if we loop over all string literals.
I don't think that this will add any noticeable overhead. In most cases
the first byte of the initializer will not be '\0', so the loop will
return on the first iteration. The loop is there only to handle obscure
cases like "\0" and "\0foobar" (the former is zero-filled, the later is
not).
Thanks,
--
Maxim Kuvyrkov
CodeSourcery
maxim@codesourcery.com
(650) 331-3385 x724