From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8799 invoked by alias); 13 Mar 2002 05:06:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 8746 invoked by uid 71); 13 Mar 2002 05:06:00 -0000 Date: Tue, 12 Mar 2002 21:06:00 -0000 Message-ID: <20020313050600.8744.qmail@sources.redhat.com> To: toon@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: "Ulrich Jakobus" Subject: Re: c/5914: Infinite loop when compiling with optimisation on of z_log.c of libf2c Reply-To: "Ulrich Jakobus" X-SW-Source: 2002-03/txt/msg00415.txt.bz2 List-Id: The following reply was made to PR c/5914; it has been noted by GNATS. From: "Ulrich Jakobus" To: "Toon Moene" Cc: "gcc-bugs@gcc.gnu.org" , "gcc-gnats@gcc.gnu.org" , "gcc-prs@gcc.gnu.org" , "nobody@gcc.gnu.org" , "toon@gcc.gnu.org" Subject: Re: c/5914: Infinite loop when compiling with optimisation on of z_log.c of libf2c Date: Wed, 13 Mar 2002 06:59:50 +0200 > >Ah, now I see - you really meant this a *C* bug report :-) > Yes, I meant this to be a *C* bug of the optimiser (and I submitted it as a C bug). Obviously the created code with -O2 or -O3 is not correct, resulting in an infinite loop. Compiling exactly the same code with -O works, and also using e.g. gcc-2.95.2 with -O2 or -O3 works fine. >Now that you know how to work around the problem, can I close the report? Well, I already knew before submitting the issue that if I use just -O it works. If you think it is not important that also gcc-3.0.4 gives correct code (as gcc-2.95.2 did for in- stance) when using -O2 or -O3 you are welcome to close the issue. Thanks, Ulrich