From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24017 invoked by alias); 2 May 2010 16:55:40 -0000 Received: (qmail 23967 invoked by uid 48); 2 May 2010 16:55:19 -0000 Date: Sun, 02 May 2010 16:55:00 -0000 Message-ID: <20100502165519.23966.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug middle-end/43861] -Os creates larger binaries than before in some cases (-falign-... options enabled) In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "rwahl at gmx dot de" 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: 2010-05/txt/msg00124.txt.bz2 ------- Comment #3 from rwahl at gmx dot de 2010-05-02 16:55 ------- Created an attachment (id=20535) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20535&action=view) Disable alignment when using -Os The attached patch fixes the problem. It could be written in a more elegant way by changing just opt1_max but this would modify the semantic of this variable and it should be renamed accordingly. On ARM the fix is probably a NOP because the default alignment seems to be 1 anyway but I haven't checked this. The output of "gcc -Q --help=optimizers" seems to be broken for the alignment options because on one hand these options are not boolean and on the other hand falign-loops is reported as enabled when it has been disabled and vice versa. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43861