Index: math/gnubc/files/patch-bc__bc.y =================================================================== --- math/gnubc/files/patch-bc__bc.y (revision 0) +++ math/gnubc/files/patch-bc__bc.y (working copy) @@ -0,0 +1,10 @@ +--- bc/bc.y.orig Sun Oct 24 10:07:01 2004 ++++ bc/bc.y Sun Oct 24 10:07:20 2004 +@@ -424,7 +424,6 @@ + generate (genstr); + $$ = 0; + } +- ; + | expression AND + { + warn("&& operator"); Index: math/gnubc/files/patch-bc__load.c =================================================================== --- math/gnubc/files/patch-bc__load.c (revision 0) +++ math/gnubc/files/patch-bc__load.c (working copy) @@ -0,0 +1,11 @@ +--- bc/load.c~ 2000-09-13 11:22:38.000000000 -0700 ++++ bc/load.c 2005-08-02 11:06:00.000000000 -0700 +@@ -156,7 +156,7 @@ load_code (code) + long label_no; + long vaf_name; /* variable, array or function number. */ + long func; +- program_counter save_adr; ++ static program_counter save_adr; /* saved across calls to load_code */ + + /* Initialize. */ + str = code; Index: math/gnubc/files/patch-bc__main.c =================================================================== --- math/gnubc/files/patch-bc__main.c (revision 0) +++ math/gnubc/files/patch-bc__main.c (working copy) @@ -0,0 +1,12 @@ +--- bc/main.c.orig 2006-12-01 14:30:52.000000000 -0800 ++++ bc/main.c 2006-12-01 14:31:13.000000000 -0800 +@@ -127,6 +127,9 @@ + warn_not_std = TRUE; + break; + ++ case 0: ++ break; ++ + default: + usage(argv[0]); + exit (1);