[PATCH] dtc: supply a definition for YYRHSLOC if there isn't one

David Gibson david at gibson.dropbear.id.au
Thu Jul 17 15:47:13 EST 2008


On Wed, Jul 16, 2008 at 01:53:57PM -0400, Paul Gortmaker wrote:
> It seems that some machines, like a default RHEL4 install, will
> not have a definition for YYRHSLOC, and that prevents building
> dtc.  This supplies what appears to be the standard definition
> for it in the event that the host system does not have it defined.

I'm pretty uneasy about this, since it relies on knowing the internals
of how bison manages its tokens.  What version of bison is it in RHEL4
that causes the trouble?

In fact I have a feeling that the extra 'file' field in YYLTYPE never
gets used, which means we could just ditch our custom YYLLOC_DEFAULT
definition, which would be a better idea, IMO, except that we'll
probably want the file info back at some point.

Ick.

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson



More information about the Linuxppc-dev mailing list