lkml.org 
[lkml]   [2002]   [Aug]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [TRIVIAL] strlen("literal string") -> (sizeof("literal string")-1)
Date
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.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:22    [W:0.058 / U:0.440 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site