This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/43861] -Os creates larger binaries than before in some cases (-falign-... options enabled)
- From: "pinskia at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Apr 2010 23:51:39 -0000
- Subject: [Bug middle-end/43861] -Os creates larger binaries than before in some cases (-falign-... options enabled)
- References: <bug-43861-5463@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from pinskia at gmail dot com 2010-04-22 23:51 -------
Subject: Re: New: -Os creates larger binaries than before in some cases
(-falign-... options enabled)
Which target is this for?
Sent from my iPhone
On Apr 22, 2010, at 4:48 PM, "rwahl at gmx dot de" <gcc-bugzilla@gcc.gnu.org
> wrote:
> Hi,
>
> I just noticed that some of my libraries are greater when compiled
> with gcc
> 4.4.3 instead of gcc 4.3.2. Diffing the output of "gcc --
> help=optimizers -Q
> -Os" shows this in 4.3.2:
>
> -falign-jumps [disabled]
> -falign-labels [disabled]
> -falign-loops [enabled]
>
> and this for 4.4.3:
>
> -falign-functions [enabled]
> -falign-jumps [enabled]
> -falign-labels [enabled]
> -falign-loops [disabled]
>
> when explicitely disabling the alignment options then the code size
> shrinks.
> For libxml2 in my case from 704256 to 675584 bytes.
>
> The manual says:
>
> -Os disables the following optimization flags: -falign-functions
> -falign-jumps -falign-loops -falign-labels -freorder-
> blocks
> -freorder-blocks-and-partition -fprefetch-loop-arrays
> -ftree-vect-loop-version
>
> which is not true (even not for 4.3.2 since loop alignment was
> enabled). Some
> other opts like -freorder-blocks is enabled as well.
>
> So is this actually a bug or is the documentation outdated or even
> both?
>
>
> --
> Summary: -Os creates larger binaries than before in some
> cases (-
> falign-... options enabled)
> Product: gcc
> Version: 4.4.3
> Status: UNCONFIRMED
> Severity: normal
> Priority: P3
> Component: middle-end
> AssignedTo: unassigned at gcc dot gnu dot org
> ReportedBy: rwahl at gmx dot de
>
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43861
>
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43861