On Thursday 23 April 2009 23:13:37, Ismail Khatib wrote:
> Next, a patch for deffilep.y, which seems to be needed with some  
> versions of bison
> (a usable deffilep.c is generated with bison 2.3, however at least  
> with version 2.4.1 of bison
> this patch is needed - so it's no mac specific issue as I suspected  
> beforehand):

I'd pretty much prefer to not carry this patch locally.  If this
is needed, it should go upstream.  Did you submit it to
binut...@sourceware.org already?  Note that if reporting
a WinCE specific target bug, you'll need to configure for 
"--target=arm-wince-pe",
since upstream binutils doesn't know bout arm-mingw32ce.  In this case,
this is the parser for .def files, so I guess any PE target will do.
E.g., --target=i686-pc-cygwin, or --target=i686-pc-mingw32 should do
as well.


> Index: src/binutils/ld/deffilep.y
> ===================================================================
> --- src/binutils/ld/deffilep.y  (revision 1245)
> +++ src/binutils/ld/deffilep.y  (working copy)
> @@ -20,6 +20,25 @@
>        Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
>        MA 02110-1301, USA.  */
> 
> +%}
> +
> +%union {
> +  char *id;
> +  int number;
> +};
> +
> +%token NAME LIBRARY DESCRIPTION STACKSIZE HEAPSIZE CODE DATAU DATAL
> +%token SECTIONS EXPORTS IMPORTS VERSIONK BASE CONSTANTU CONSTANTL
> +%token PRIVATEU PRIVATEL
> +%token READ WRITE EXECUTE SHARED NONAMEU NONAMEL DIRECTIVE
> +%token <id> ID
> +%token <number> NUMBER
> +%type  <number> opt_base opt_ordinal
> +%type  <number> attr attr_list opt_number exp_opt_list exp_opt
> +%type  <id> opt_name opt_equal_name dot_name
> +
> +%{
> +
>   #include "sysdep.h"
>   #include "libiberty.h"
>   #include "safe-ctype.h"
> @@ -99,21 +118,6 @@
> 
>   %}
> 
> -%union {
> -  char *id;
> -  int number;
> -};
> -
> -%token NAME LIBRARY DESCRIPTION STACKSIZE HEAPSIZE CODE DATAU DATAL
> -%token SECTIONS EXPORTS IMPORTS VERSIONK BASE CONSTANTU CONSTANTL
> -%token PRIVATEU PRIVATEL
> -%token READ WRITE EXECUTE SHARED NONAMEU NONAMEL DIRECTIVE
> -%token <id> ID
> -%token <number> NUMBER
> -%type  <number> opt_base opt_ordinal
> -%type  <number> attr attr_list opt_number exp_opt_list exp_opt
> -%type  <id> opt_name opt_equal_name dot_name
> -
>   %%
> 
>   start: start command


-- 
Pedro Alves

------------------------------------------------------------------------------
Crystal Reports &#45; New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty&#45;free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to