switch-coreboot/util/dtc
Mart Raudsepp 705439d7aa Fix a build error when using bison-2.4
This fixes one of the errors from using bison-2.4, but there are more.

This one in details is the following error:

  BISON   build/util/dtc/dtc-parser.tab.c
  HOSTCC  build/util/dtc/dtc-parser.tab.o
/home/leio/dev/coreboot-v3/util/dtc/dtc-parser.y: In function ‘yyuserAction’:
/home/leio/dev/coreboot-v3/util/dtc/dtc-parser.y:154: error: expected ‘;’ before ‘}’ token
make: *** [/home/leio/dev/coreboot-v3/build/util/dtc/dtc-parser.tab.o] Error 1

Note that 2.4.1 might be made to still work without the semi-colon for some languages, but I
understand 2.5 then still won't work without one. As it builds fine with this change with
bison-2.3, it should be safe to just add the semicolon.

The remaining error is the following:

/home/leio/dev/coreboot-v3/util/dtc/dtc-lexer.l: In function ‘yylex’:
/home/leio/dev/coreboot-v3/util/dtc/dtc-lexer.l:73: error: ‘yylval’ undeclared (first use in this function)
/home/leio/dev/coreboot-v3/util/dtc/dtc-lexer.l:73: error: (Each undeclared identifier is reported only once
/home/leio/dev/coreboot-v3/util/dtc/dtc-lexer.l:73: error: for each function it appears in.)

dtc-parser.tab.h doesn't seem to get an "extern YYSTYPE yylval" declaration, which per documentation should
only happen for pure parser cases ("%define api.pure"), but I can't find any such declaration in dtc to cause
the problem.

Note that upstream dtc builds fine with bison-2.4

Signed-off-by: Mart Raudsepp <mart.raudsepp@artecdesign.ee>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>

git-svn-id: svn://coreboot.org/repository/coreboot-v3@1004 f3766cd6-281f-0410-b1cd-43a5c92072e9
2008-11-12 17:04:15 +00:00
..
Documentation filling in 2006-10-06 19:19:14 +00:00
tests filling in 2006-10-06 19:19:14 +00:00
comment-test.dts filling in 2006-10-06 19:19:14 +00:00
COPYING filling in 2006-10-06 19:19:14 +00:00
data.c Add generic array support to the coreboot dts output code. 2008-04-17 16:13:58 +00:00
dtc-lexer.l This is the dtc update by itself. 2007-06-27 19:13:18 +00:00
dtc-parser.y Fix a build error when using bison-2.4 2008-11-12 17:04:15 +00:00
dtc.c In the current version of dtc, if one has the line: 2008-01-29 17:48:10 +00:00
dtc.h The K8 is one example, but there are other devices (e.g. I2C) that also have 2008-09-17 16:36:20 +00:00
endian.h Now version 3: LinuxBIOS -> coreboot rename. 2008-01-27 18:54:57 +00:00
flat_dt.h filling in 2006-10-06 19:19:14 +00:00
flattree.c Allow setting of rom_address where needed. 2008-10-20 15:21:19 +00:00
fstree.c Changes to allow us to use the dtc to create C structures for the static 2007-06-19 07:03:35 +00:00
ftdump.c This patch fixes compilation on OS X 2007-07-16 22:42:21 +00:00
libdt.c This patch fixes compilation on OS X 2007-07-16 22:42:21 +00:00
livetree.c Fix code warning - val.type is a char, and NULL is not. 2008-04-26 12:05:08 +00:00
Makefile * move post_code() to a seperate file 2007-07-23 16:49:00 +00:00
test.dts filling in 2006-10-06 19:19:14 +00:00
TODO filling in 2006-10-06 19:19:14 +00:00
treesource.c Clean up nasty dtc warnings 2007-02-23 10:13:24 +00:00