From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2825 invoked by alias); 18 Jun 2007 19:16:22 -0000 Received: (qmail 2759 invoked by uid 48); 18 Jun 2007 19:16:11 -0000 Date: Mon, 18 Jun 2007 19:16:00 -0000 Message-ID: <20070618191611.2758.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/32391] Wrong code with optimization on i686-pc-linux-gnu In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "kargl at gcc dot gnu dot org" 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: 2007-06/txt/msg01505.txt.bz2 ------- Comment #12 from kargl at gcc dot gnu dot org 2007-06-18 19:16 ------- (In reply to comment #11) > Yes, I agree that program is not beautiful > and I know the the array 'w' of 'u3b' subroutine problem; > I think the author of u3b use w(1) as pointer. Change the 1 to *. > However, > the wrong generation of optimized code occurs in 'DP' subroutine. > The array of DP have fixed boundary. Do you get wrong results if you add the -ffloat-store option? Can you also try the -fdefault-real-8 option? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32391