Waldek Hebisch wrote:
Prof A Olowofoyeku wrote:
Same here. It segfaults on compiling error.pas
OK, I have build gcc-3.2.3 based gpc. I applied the following patch (includes the change Frank posted and my previous patch):
Thanks, I guess I should start testing with 3.2 again when I make further changes.
diff -u p.orig/declarations.c p/declarations.c --- p.orig/declarations.c Thu Mar 31 20:04:18 2005 +++ p/declarations.c Fri Apr 1 16:48:36 2005 @@ -328,7 +328,7 @@ } else { -#ifndef GCC_3_3 +#ifndef EGCS97 newlevel->shared_decl_lang_specific = (struct lang_decl *) xmalloc (sizeof (*(newlevel->shared_decl_lang_specific))); #else newlevel->shared_decl_lang_specific = (struct lang_decl *) ggc_alloc (sizeof (*(newlevel->shared_decl_lang_specific)));
BTW, the same change could perhaps be made in line 315 above. But as I can't test it ATM, I better no do it. It's probably not very important there, and if 3.2 is dropped after integrating the preprocessor, it won't matter much in the long run anyway.
Frank