From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14324 invoked by alias); 9 Jun 2009 14:52:01 -0000 Received: (qmail 14294 invoked by uid 48); 9 Jun 2009 14:51:46 -0000 Date: Tue, 09 Jun 2009 14:52:00 -0000 Message-ID: <20090609145146.14293.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug middle-end/40386] wrong code generation for SPEC CPU2000's 189.lucas with -O1 -fno-ira-share-spill-slots In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "kenneth dot hoste at elis dot ugent dot be" 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: 2009-06/txt/msg00555.txt.bz2 ------- Comment #6 from kenneth dot hoste at elis dot ugent dot be 2009-06-09 14:51 ------- Some more related details which might help shed light on the cause behind this. The 178.galgel benchmark (again, Fortran), is also being miscompiled, but now using -ffixed-form -fno-ira-share-spill-slots -fno-tree-loop-im in combination with -O3 or -Os. Note that -O1 and -O2 are working fine with these options specified. (-ffixed-form is always needed to compile galgel, so this one is probably of minor importance here) On top of this, additionally specifying -fno-tree-dominator-opts resolves the issue at -O3 (corrext code is being emitted), but this is not the case at -Os, where the miscompile still occurs. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40386