From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16334 invoked by alias); 18 Oct 2009 13:53:22 -0000 Received: (qmail 16305 invoked by uid 48); 18 Oct 2009 13:53:04 -0000 Date: Sun, 18 Oct 2009 13:53:00 -0000 Message-ID: <20091018135304.16304.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug middle-end/41741] -Os generates bigger code than -O2 for simple loops In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "rguenth at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-10/txt/msg01572.txt.bz2 ------- Comment #1 from rguenth at gcc dot gnu dot org 2009-10-18 13:53 ------- I think that's the usual loop-header copying trade-off. If you do it you possibly increase code size, if you don't, you lose optimization - especially on induction variables. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41741