This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/54888] GCC with -Os is faster than -O3 on some AVR code


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54888

--- Comment #3 from mojo at world3 dot net 2012-10-22 12:40:57 UTC ---
(In reply to comment #2)

> And I actually don't understand teh issue: Optimizing for size does not require
> to produce slow code.  The code may run fast.

-O3 is supposed to produce the fastest possible code, but it doesn't. -Os is
faster. At the very least the two should be equal.

In other words -O3 is broken.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]