Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Jul 2006 09:52:00 -0700
From:      Steve Kargl <sgk@troutmask.apl.washington.edu>
To:        Randall Hyde <randyhyde@earthlink.net>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: contiguous memory allocation problem
Message-ID:  <20060702165200.GA15180@troutmask.apl.washington.edu>
In-Reply-To: <001b01c69df0$973850c0$6302a8c0@pentiv>
References:  <20060701123444.GD8447@turion.vk2pj.dyndns.org> <001b01c69df0$973850c0$6302a8c0@pentiv>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Jul 02, 2006 at 09:00:07AM -0700, Randall Hyde wrote:
> 
> ----- Original Message ----- 
> From: "Peter Jeremy" <peterjeremy@optushome.com.au>
> To: "Randall Hyde" <randyhyde@earthlink.net>
> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060702165200.GA15180>