Frank Heckenbach wrote:
Another memory management bugfix, thanks to Waldek Hebisch. (I've updated the archives on the server again.)
Those who've seen memory problems with the new GPC, please try again with this and the other patches applied.
Frank, you changed the patch and it does not work. One have to apply the following patch AFTER the patch that Frank posted. I advise also to do `touch parse.c' -- otherwise make may want to rebuild it and it is tricky to get correct version of bison. I fetched bison-1.875b from http://multivac.cwru.edu/mirror/packages/bison-1.875b.tar.bz2 I had to modify parse.c by hand to undefine `abort', after that it worked. Other versions of bison gave me non-working compiler.
And now the patch:
diff -ru gpc-20030830.orig/p/options.c gpc-20030830/p/options.c --- gpc-20030830.orig/p/options.c Sun Sep 14 02:15:08 2003 +++ gpc-20030830/p/options.c Sun Sep 14 02:16:25 2003 @@ -609,7 +609,9 @@ return; #define BO(NAME) co->NAME = NAME; if (save_current) - BACKEND_OPTIONS + { + BACKEND_OPTIONS + } #undef BO co = options; #define BO(NAME) NAME = co->NAME;