From: | ike@localhost.claranet.nl (Ike Naar) |
Newsgroups: | comp.compilers |
Date: | Tue, 29 Mar 2011 21:42:12 +0000 (UTC) |
Organization: | A noiseless patient Spider |
References: | 11-03-054 11-03-061 |
Keywords: | GCC, debug |
Posted-Date: | 30 Mar 2011 16:27:21 EDT |
George Neuner <gneuner2@comcast.net> wrote:
>GCC's -O3 optimization level is widely known to cause strange problems
>... almost always because the program is violating assumptions made by
>the more advanced optimizations.
>
>The -O2 level typically is safe. If you think you need the -O3
>optimizations, you should individually enable them to see if any
>breaks the program. Specify -O3 only if you find they all work.
Sometimes using -O3 makes the program run slower than when using -O2.
Return to the
comp.compilers page.
Search the
comp.compilers archives again.