From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15437 invoked by alias); 12 Nov 2007 15:01:21 -0000 Received: (qmail 15419 invoked by uid 48); 12 Nov 2007 15:01:15 -0000 Date: Mon, 12 Nov 2007 15:01:00 -0000 Message-ID: <20071112150115.15418.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/msg01055.txt.bz2 ------- Comment #10 from rguenth at gcc dot gnu dot org 2007-11-12 15:01 ------- of course in the -O2 case I forgot to paste the rest of the fn in, here it is: .p2align 4,,7 .p2align 3 .L5: addl $-1000000000, %eax adcl $-1, %edx movl $1000000000, 8(%esp) movl $0, 12(%esp) movl %eax, (%esp) movl %edx, 4(%esp) call __umoddi3 leave ret so unfortunately the expanders don't deal with modulus the same way as with the div/mul sequence. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34027