Il 03/08/2012 05:07, Moore, Robert ha scritto:
Perhaps there is a compatibility flag (or some other flag) to disable the code that is emitted below?
No, there isn't, but you can exploit the fact that only the new Bison will define a header guard (ASLCOMPILER_ASLCOMPILERPARSE_H). So you can avoid redeclaring AslCompilerparse and AslCompilerdebug if that symbol is defined.
Paolo
-----Original Message----- From: Moore, Robert Sent: Tuesday, July 31, 2012 2:31 PM To: Idwer Vollering Cc: Michael S. Tsirkin; Kevin O'Connor; seabios@seabios.org; Tang, Feng Subject: RE: [SeaBIOS] Compiling SeaBIOS for coreboot has problems with its ACPI code
Yes, for whatever reason, it is definitely an issue with the newer version of bison. None of the code below is output with bison 2.4.2:
#if YYDEBUG extern int AslCompilerdebug; #endif
#ifdef YYPARSE_PARAM #if defined __STDC__ || defined __cplusplus int AslCompilerparse (void *YYPARSE_PARAM); #else int AslCompilerparse (); #endif #else /* ! YYPARSE_PARAM */ #if defined __STDC__ || defined __cplusplus int AslCompilerparse (void); #else int AslCompilerparse (); #endif #endif /* ! YYPARSE_PARAM */