From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29140 invoked by alias); 12 Nov 2007 13:28:31 -0000 Received: (qmail 29112 invoked by uid 48); 12 Nov 2007 13:28:27 -0000 Date: Mon, 12 Nov 2007 13:28:00 -0000 Message-ID: <20071112132827.29111.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug tree-optimization/34027] [4.3 regression] -Os code size nearly doubled 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: 2007-11/txt/msg01048.txt.bz2 ------- Comment #9 from rguenth at gcc dot gnu dot org 2007-11-12 13:28 ------- We now generate with -Os -m32 foobar: pushl %ebp movl %esp, %ebp subl $8, %esp pushl $0 pushl $1000000000 pushl 12(%ebp) pushl 8(%ebp) call __umoddi3 addl $16, %esp leave ret and with -O2 -m32: foobar: pushl %ebp movl %esp, %ebp subl $24, %esp movl 12(%ebp), %edx movl 8(%ebp), %eax cmpl $0, %edx ja .L5 cmpl $999999999, %eax ja .L5 leave ret which for -Os is smaller than what we generated with 4.2 (and for -O2 it is slightly larger). So, fixed. -- rguenth at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34027