From owner-freebsd-current Wed Dec 29 17: 2:41 1999 Delivered-To: freebsd-current@freebsd.org Received: from rah.star-gate.com (216-200-29-190.snj0.flashcom.net [216.200.29.194]) by hub.freebsd.org (Postfix) with ESMTP id C94E215752 for ; Wed, 29 Dec 1999 17:02:37 -0800 (PST) (envelope-from hasty@rah.star-gate.com) Received: from rah.star-gate.com (localhost.star-gate.com [127.0.0.1]) by rah.star-gate.com (8.9.3/8.9.3) with ESMTP id RAA45553; Wed, 29 Dec 1999 17:02:12 -0800 (PST) (envelope-from hasty@rah.star-gate.com) Message-Id: <199912300102.RAA45553@rah.star-gate.com> X-Mailer: exmh version 2.0.2 2/24/98 To: Bosko Milekic Cc: current@FreeBSD.ORG Subject: Re: gcc compile error In-reply-to: Your message of "Wed, 29 Dec 1999 19:31:41 EST." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 29 Dec 1999 17:02:11 -0800 From: Amancio Hasty Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, We just have a buggy version of gcc and it appears that the register allocator is the main problematic area. This is not really a problem for me because what I first try out is a newer version of gcc if I can not get around the compile problem. At any rate remember that at least my reported compiler bug appears to be fixed in the latest gcc-devel port. > > 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/ > -- > > -- Amancio Hasty hasty@rah.star-gate.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message