head 1.5; access; symbols pkgsrc-2022Q2:1.4.0.42 pkgsrc-2022Q2-base:1.4 pkgsrc-2022Q1:1.4.0.40 pkgsrc-2022Q1-base:1.4 pkgsrc-2021Q4:1.4.0.38 pkgsrc-2021Q4-base:1.4 pkgsrc-2021Q3:1.4.0.36 pkgsrc-2021Q3-base:1.4 pkgsrc-2021Q2:1.4.0.34 pkgsrc-2021Q2-base:1.4 pkgsrc-2021Q1:1.4.0.32 pkgsrc-2021Q1-base:1.4 pkgsrc-2020Q4:1.4.0.30 pkgsrc-2020Q4-base:1.4 pkgsrc-2020Q3:1.4.0.28 pkgsrc-2020Q3-base:1.4 pkgsrc-2020Q2:1.4.0.24 pkgsrc-2020Q2-base:1.4 pkgsrc-2020Q1:1.4.0.4 pkgsrc-2020Q1-base:1.4 pkgsrc-2019Q4:1.4.0.26 pkgsrc-2019Q4-base:1.4 pkgsrc-2019Q3:1.4.0.22 pkgsrc-2019Q3-base:1.4 pkgsrc-2019Q2:1.4.0.20 pkgsrc-2019Q2-base:1.4 pkgsrc-2019Q1:1.4.0.18 pkgsrc-2019Q1-base:1.4 pkgsrc-2018Q4:1.4.0.16 pkgsrc-2018Q4-base:1.4 pkgsrc-2018Q3:1.4.0.14 pkgsrc-2018Q3-base:1.4 pkgsrc-2018Q2:1.4.0.12 pkgsrc-2018Q2-base:1.4 pkgsrc-2018Q1:1.4.0.10 pkgsrc-2018Q1-base:1.4 pkgsrc-2017Q4:1.4.0.8 pkgsrc-2017Q4-base:1.4 pkgsrc-2017Q3:1.4.0.6 pkgsrc-2017Q3-base:1.4 pkgsrc-2017Q2:1.4.0.2 pkgsrc-2017Q2-base:1.4 pkgsrc-2017Q1:1.2.0.44 pkgsrc-2017Q1-base:1.2 pkgsrc-2016Q4:1.2.0.42 pkgsrc-2016Q4-base:1.2 pkgsrc-2016Q3:1.2.0.40 pkgsrc-2016Q3-base:1.2 pkgsrc-2016Q2:1.2.0.38 pkgsrc-2016Q2-base:1.2 pkgsrc-2016Q1:1.2.0.36 pkgsrc-2016Q1-base:1.2 pkgsrc-2015Q4:1.2.0.34 pkgsrc-2015Q4-base:1.2 pkgsrc-2015Q3:1.2.0.32 pkgsrc-2015Q3-base:1.2 pkgsrc-2015Q2:1.2.0.30 pkgsrc-2015Q2-base:1.2 pkgsrc-2015Q1:1.2.0.28 pkgsrc-2015Q1-base:1.2 pkgsrc-2014Q4:1.2.0.26 pkgsrc-2014Q4-base:1.2 pkgsrc-2014Q3:1.2.0.24 pkgsrc-2014Q3-base:1.2 pkgsrc-2014Q2:1.2.0.22 pkgsrc-2014Q2-base:1.2 pkgsrc-2014Q1:1.2.0.20 pkgsrc-2014Q1-base:1.2 pkgsrc-2013Q4:1.2.0.18 pkgsrc-2013Q4-base:1.2 pkgsrc-2013Q3:1.2.0.16 pkgsrc-2013Q3-base:1.2 pkgsrc-2013Q2:1.2.0.14 pkgsrc-2013Q2-base:1.2 pkgsrc-2013Q1:1.2.0.12 pkgsrc-2013Q1-base:1.2 pkgsrc-2012Q4:1.2.0.10 pkgsrc-2012Q4-base:1.2 pkgsrc-2012Q3:1.2.0.8 pkgsrc-2012Q3-base:1.2 pkgsrc-2012Q2:1.2.0.6 pkgsrc-2012Q2-base:1.2 pkgsrc-2012Q1:1.2.0.4 pkgsrc-2012Q1-base:1.2 pkgsrc-2011Q4:1.2.0.2 pkgsrc-2011Q4-base:1.2; locks; strict; comment @# @; 1.5 date 2022.09.24.06.00.40; author wiz; state dead; branches; next 1.4; commitid uB6szBiAgstWV4VD; 1.4 date 2017.05.07.06.49.23; author tsutsui; state Exp; branches; next 1.3; commitid LComJkFUy6CfmqQz; 1.3 date 2017.04.29.01.11.55; author tsutsui; state Exp; branches; next 1.2; commitid geTWls6WoYtoNmPz; 1.2 date 2011.12.24.17.07.07; author dholland; state Exp; branches; next 1.1; 1.1 date 2011.12.24.13.30.33; author dholland; state Exp; branches; next ; desc @@ 1.5 log @mule: remove code from 1997; does not build in any bulk build I could find; corresponds to emacs 19; newer emacs's have better language support built-in. @ text @$NetBSD: patch-src_alloc_c,v 1.4 2017/05/07 06:49:23 tsutsui Exp $ - use standard includes --- src/alloc.c.orig 1994-10-24 11:37:41.000000000 +0000 +++ src/alloc.c @@@@ -30,6 +30,7 @@@@ the Free Software Foundation, 675 Mass A In make_string(), original bug fixed. */ #include +#include #include #include "lisp.h" @@@@ -128,9 +129,11 @@@@ int stack_copy_size; /* Non-zero means ignore malloc warnings. Set during initialization. */ int ignore_warnings; -static void mark_object (), mark_buffer (); +static void mark_object (Lisp_Object *), mark_buffer (Lisp_Object); +static void mark_interval (INTERVAL, Lisp_Object); static void clear_marks (), gc_sweep (); static void compact_strings (); +Lisp_Object make_pure_vector (int); /* Versions of malloc and realloc that print warnings as memory gets full. */ @ 1.4 log @Make this build (i.e. dump with -batch etc. work) on NetBSD/amd64 7.1. Bump PKGREVISION to denote changes. `emacs -nw' gets a startup window, but emacs (with Xt) still dumps core. XXX: maybe much more prototypes are neccesary for LONG_LISP_OBJECT and XXX: VALBITS>=32 on LP64. @ text @d1 1 a1 1 $NetBSD: patch-src_alloc_c,v 1.3 2017/04/29 01:11:55 tsutsui Exp $ @ 1.3 log @Make this ancient mule2 build and work (at least start up) on NetBSD/i386 7.1. - pull unexelf.c from newer emacs to fix coredump on dump-charset - in s/netbsd.h use terminfo rather than obsolete termcap that causes SIGSEGV - also link temacs with "-Wl,-znocombreloc" for X toolkit as emacs22 did XXX: this should be into configure - specify -fno-builtin-malloc to avoid unexpected gcc's optimization and remove hacks in alloc.c - also specify -fno-strict-aliasing for sanity against 90's files @ text @d1 1 a1 1 $NetBSD: patch-src_alloc_c,v 1.2 2011/12/24 17:07:07 dholland Exp $ d15 13 @ 1.2 log @Adjust the amd64 patch by crosschecking the existing header for alpha. Patch extensive use of malloc and alloca without and some other stuff that showed up in the build log. Still crashes in temacs but it's getting much farther. @ text @d1 1 a1 1 $NetBSD: patch-src_alloc_c,v 1.1 2011/12/24 13:30:33 dholland Exp $ a3 3 - add an empty asm() destroying memory that prevents gcc from optimizing out __malloc_hook and friends (which leads to SIGSEGV in temacs during build) a14 30 @@@@ -240,6 +241,9 @@@@ emacs_blocked_free (ptr) { BLOCK_INPUT; __free_hook = old_free_hook; +#ifdef __GNUC__ + __asm __volatile("":::"memory"); +#endif free (ptr); __free_hook = emacs_blocked_free; UNBLOCK_INPUT; @@@@ -253,6 +257,9 @@@@ emacs_blocked_malloc (size) BLOCK_INPUT; __malloc_hook = old_malloc_hook; +#ifdef __GNUC__ + __asm __volatile("":::"memory"); +#endif value = (void *) malloc (size); __malloc_hook = emacs_blocked_malloc; UNBLOCK_INPUT; @@@@ -269,6 +276,9 @@@@ emacs_blocked_realloc (ptr, size) BLOCK_INPUT; __realloc_hook = old_realloc_hook; +#ifdef __GNUC__ + __asm __volatile("":::"memory"); +#endif value = (void *) realloc (ptr, size); __realloc_hook = emacs_blocked_realloc; UNBLOCK_INPUT; @ 1.1 log @Merge patch-bm from emacs20 to prevent infinite recursion in malloc. @ text @d1 1 a1 1 $NetBSD$ d3 1 d8 1 a8 1 --- src/alloc.c~ 1994-10-24 11:37:41.000000000 +0000 d10 9 a18 1 @@@@ -240,6 +240,9 @@@@ emacs_blocked_free (ptr) d28 1 a28 1 @@@@ -253,6 +256,9 @@@@ emacs_blocked_malloc (size) d38 1 a38 1 @@@@ -269,6 +275,9 @@@@ emacs_blocked_realloc (ptr, size) @