From owner-freebsd-current Wed Dec 29 16:32:12 1999 Delivered-To: freebsd-current@freebsd.org Received: from oracle.dsuper.net (oracle.dsuper.net [205.205.255.1]) by hub.freebsd.org (Postfix) with ESMTP id 139DF14F9A; Wed, 29 Dec 1999 16:32:08 -0800 (PST) (envelope-from bmilekic@dsuper.net) Received: from oracle.dsuper.net (oracle.dsuper.net [205.205.255.1]) by oracle.dsuper.net (8.9.3/8.9.3) with ESMTP id TAA17206; Wed, 29 Dec 1999 19:31:41 -0500 (EST) Date: Wed, 29 Dec 1999 19:31:41 -0500 (EST) From: Bosko Milekic To: Amancio Hasty Cc: "Jordan K. Hubbard" , Peter Wemm , Bill Fumerola , obrien@FreeBSD.ORG, Donn Miller , current@FreeBSD.ORG Subject: Re: gcc compile error In-Reply-To: <199912291937.LAA43173@rah.star-gate.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, 29 Dec 1999, Amancio Hasty wrote: !> !>Without -O or -O2 the program compiles okay. !> !>gcc -c bug.c !> Ouch! This looks an awful lot like the last report with `GCC' and `problem' in the subject. As Matt just mentionned one or two posts ago, and as I observed in the last thread, have you tried making some of the variables `volatile?' Assuming of course that the code does compile well without the optimization flags, one would assume that the "problem" occurs because of caching of certain variable values in registers (not that this should be a problem, mind you; one would assume that the optimization isn't performed too well). Due to lack of time, and generally speaking, lack of experience with GCC, I haven't taken a detailed shot at debugging this. Bosko. -- Bosko Milekic Email: bmilekic@dsuper.net WWW: http://pages.infinit.net/bmilekic/ -- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message