From owner-freebsd-hackers@FreeBSD.ORG Sun Jul 2 17:20:32 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AAA5616A412 for ; Sun, 2 Jul 2006 17:20:32 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.208.78.105]) by mx1.FreeBSD.org (Postfix) with ESMTP id B916D44141 for ; Sun, 2 Jul 2006 16:52:31 +0000 (GMT) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost.apl.washington.edu [127.0.0.1]) by troutmask.apl.washington.edu (8.13.7/8.13.7) with ESMTP id k62Gq4KD015381; Sun, 2 Jul 2006 09:52:04 -0700 (PDT) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.13.7/8.13.7/Submit) id k62Gq0N0015380; Sun, 2 Jul 2006 09:52:00 -0700 (PDT) (envelope-from sgk) Date: Sun, 2 Jul 2006 09:52:00 -0700 From: Steve Kargl To: Randall Hyde Message-ID: <20060702165200.GA15180@troutmask.apl.washington.edu> References: <20060701123444.GD8447@turion.vk2pj.dyndns.org> <001b01c69df0$973850c0$6302a8c0@pentiv> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <001b01c69df0$973850c0$6302a8c0@pentiv> User-Agent: Mutt/1.4.2.1i Cc: freebsd-hackers@freebsd.org Subject: Re: contiguous memory allocation problem X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Jul 2006 17:20:32 -0000 On Sun, Jul 02, 2006 at 09:00:07AM -0700, Randall Hyde wrote: > > ----- Original Message ----- > From: "Peter Jeremy" > To: "Randall Hyde" > Sent: Saturday, July 01, 2006 11:10 PM > Subject: Re: FLEX, was Re: Return value of malloc(0) > > The following compiles without error: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > %{ > typedef int YYSTYPE; > typedef int YYLTYPE; > > /* > ** Allow for a recursive version of Bison parser. > */ > #undef YY_DECL > #define YY_DECL int yylex( YYSTYPE *yylval, YYLTYPE *yylloc) > %} > > %% > . ECHO; > %% > > I'll accept that you are having a problem getting HLA to build. No-one > else is reporting problems. If you want assistance from other people > then you are going to need to help by either providing a test case to > reproduce the failure you are seeing or you are going to need to provide > the pre-processed context where the error occurs. > > <<<<<<<<<<<<<<<<<<<<<<< > > Uh, is the above *not* the test case you are asking for? Carefully, read what Peter wrote. The code above compiles on FreeBSD. As does the 37 *.y files under /usr/src (excluding the 30 *.y under /usr/src/contrib which may or may not be used during compilation). > Does this particular code snippet compile for you? Yes, it does. > If so, then I've definitely got some configuration problems > with GCC on my machine. What version of FreeBSD, and did you upgrade from a previous version? Perhaps, you have some stale header files. Did you install a different version of gcc under /usr/local (or other directory) that appears early in your path? -- Steve