This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [wwwdocs] Re: [2/2] tree-ssa-strlen optimization pass
- From: Gerald Pfeifer <gerald at pfeifer dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: Richard Guenther <richard dot guenther at gmail dot com>, gcc-patches at gcc dot gnu dot org
- Date: Sun, 9 Oct 2011 17:08:18 -0600 (MDT)
- Subject: Re: [wwwdocs] Re: [2/2] tree-ssa-strlen optimization pass
- References: <20110915170922.GR2687@tyan-ft48-01.lab.bos.redhat.com> <CAFiYyc0NxW5Uf53CSeLALVxuDVn860q7qACCfWeXS7YD3f-yPA@mail.gmail.com> <20110929130217.GU2687@tyan-ft48-01.lab.bos.redhat.com>
Hi Jakub,
this is a minor update on top of yours that I just applied. Thanks
for taking the time to write this up.
Gerald
Index: changes.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-4.7/changes.html,v
retrieving revision 1.46
diff -u -r1.46 changes.html
--- changes.html 4 Oct 2011 19:07:01 -0000 1.46
+++ changes.html 9 Oct 2011 23:05:47 -0000
@@ -125,13 +125,13 @@
growth.</li>
</ul></li>
- <li>String length optimization pass has been added. This pass attempts
+ <li>A string length optimization pass has been added. It attempts
to track string lengths and optimize various standard C string functions
like <code>strlen</code>, <code>strchr</code>, <code>strcpy</code>,
<code>strcat</code>, <code>stpcpy</code> and their
<code>_FORTIFY_SOURCE</code> counterparts into faster alternatives.
This pass is enabled by default at <code>-O2</code> or above, unless
- optimizing for size, and can be disabled by
+ optimizing for size, and can be disabled by the
<code>-fno-optimize-strlen</code> option. The pass can e.g. optimize
<pre>
char *bar (const char *a)