From patchwork Sun Oct 9 23:08:18 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerald Pfeifer X-Patchwork-Id: 118626 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id BE0F3B6F9F for ; Mon, 10 Oct 2011 10:08:45 +1100 (EST) Received: (qmail 9310 invoked by alias); 9 Oct 2011 23:08:43 -0000 Received: (qmail 9295 invoked by uid 22791); 9 Oct 2011 23:08:41 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=BAYES_00 X-Spam-Check-By: sourceware.org Received: from ainaz.pair.com (HELO ainaz.pair.com) (209.68.2.66) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 09 Oct 2011 23:08:19 +0000 Received: from [10.32.64.72] (unknown [70.102.180.10]) by ainaz.pair.com (Postfix) with ESMTPSA id 3B9F93F40F; Sun, 9 Oct 2011 19:08:18 -0400 (EDT) Date: Sun, 9 Oct 2011 17:08:18 -0600 (MDT) From: Gerald Pfeifer To: Jakub Jelinek cc: Richard Guenther , gcc-patches@gcc.gnu.org Subject: Re: [wwwdocs] Re: [2/2] tree-ssa-strlen optimization pass In-Reply-To: <20110929130217.GU2687@tyan-ft48-01.lab.bos.redhat.com> Message-ID: References: <20110915170922.GR2687@tyan-ft48-01.lab.bos.redhat.com> <20110929130217.GU2687@tyan-ft48-01.lab.bos.redhat.com> MIME-Version: 1.0 X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org 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. -
  • String length optimization pass has been added. This pass attempts +
  • A string length optimization pass has been added. It attempts to track string lengths and optimize various standard C string functions like strlen, strchr, strcpy, strcat, stpcpy and their _FORTIFY_SOURCE counterparts into faster alternatives. This pass is enabled by default at -O2 or above, unless - optimizing for size, and can be disabled by + optimizing for size, and can be disabled by the -fno-optimize-strlen option. The pass can e.g. optimize
     char *bar (const char *a)