From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27991 invoked by alias); 12 Feb 2009 00:45:01 -0000 Received: (qmail 27896 invoked by uid 48); 12 Feb 2009 00:44:49 -0000 Date: Thu, 12 Feb 2009 00:45:00 -0000 Message-ID: <20090212004449.27895.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug target/39148] -Os increase code size when stack is aligned In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "hjl dot tools at gmail dot com" 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-02/txt/msg01023.txt.bz2 ------- Comment #5 from hjl dot tools at gmail dot com 2009-02-12 00:44 ------- I tried -maccumulate-outgoing-args on 2.6 kernel: text data bss dec hex filename 5136786 600084 1003520 6740390 66d9a6 vmlinux 5086759 600084 1003520 6690363 66163b /tmp/vmlinux.old It does increase binary size. Should we consider to turn on ACCUMULATE_OUTGOING_ARGS when stack is aligned? If ACCUMULATE_OUTGOING_ARGS is off, ECX will be used for stack alignment and it may lead to code size increase due to register spill since ia32 has very few registers. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39148