From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2244 invoked by alias); 17 Jul 2008 16:55:08 -0000 Received: (qmail 2056 invoked by uid 48); 17 Jul 2008 16:54:24 -0000 Date: Thu, 17 Jul 2008 16:55:00 -0000 Message-ID: <20080717165424.2055.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/36861] code generation regression with -O3 In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "lothar at tradescape dot biz" 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: 2008-07/txt/msg01432.txt.bz2 ------- Comment #2 from lothar at tradescape dot biz 2008-07-17 16:54 ------- Created an attachment (id=15923) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15923&action=view) updated testcase changed the test case to resemble my application a bit closer. Here it is almost 40 times slower with -O3 than with -O0 The other strange thing with our app (that I can NOT recreate with a test case so far) is that if I use -DUSE_OPTIMIZATION=1 in my app the -O3 compiled version seems to go into an infinite loop. real 0m1.586s user 0m0.988s sys 0m0.020s real 0m40.963s user 0m40.655s sys 0m0.048s real 0m2.457s user 0m1.976s sys 0m0.020s real 0m0.291s user 0m0.164s sys 0m0.020s -- lothar at tradescape dot biz changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #15921|0 |1 is obsolete| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36861