http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47470
Summary: Less-optimized Code Size when using Optimizations
Product: gcc
Version: 3.3.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unas
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47470
--- Comment #2 from Tomer Levi 2011-01-26
11:43:36 UTC ---
Hi,
The attached assembly was produced on the following machine:
taln36-Amit<1015> gcc -v
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1/specs
Configured with: ./configu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47470
--- Comment #4 from Tomer Levi 2011-01-26
12:47:14 UTC ---
The cross-gcc compiler i'm using is hooking the default GNU verbose message,
hence i can not tell how GCC was exactly configured.
As i alredy said, the issue is reproducible on native GCC
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47470
--- Comment #6 from Tomer Levi 2011-01-26
13:00:17 UTC ---
Hi Richard,
Thanks for your prompt reply.
Actually, -fno-loop-optimize was the first thing i've tried when facing this
issue. However, the generated code is even worse than using -Os alo
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47470
--- Comment #7 from Tomer Levi 2011-01-26
13:16:16 UTC ---
Hi,
I was able to test the behavior on GCC 3.4.5 (native):
Here, the -fno-loop-optimize (and -fno-loop-optimize2) generate an optimized
code as expected. Unfortunately, i don't have a GCC