Re: [TRIVIAL] strlen("literal string") -> (sizeof("literal string")-1)

Rusty Russell
2002-08-29T06:49:24Z

In message <20020829032642.GA9201@nevyn.them.org> you write:
> Also disagree; besides, the evidence implies that Keith is wrong. GCC
> 2.95.3:

i386, m68k, s390 and s390x define inline strlen() versions, so they
are don't optimize strlen("literal").

This premature optimization should probably be fixed,
Rusty.
--
Anyone who quotes me in their sig is an idiot. -- Rusty Russell.