From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: hybrid_malloc on CANNOT_DUMP? Date: Mon, 21 Nov 2016 12:41:17 +0100 Organization: not if I can help it Message-ID: <87polpkqle.fsf@gmail.com> References: <337f0a16-afbb-63dc-0d24-d53a9986be31@dancol.org> <92f6cd2e-5141-6e60-df08-4a33269928cd@cs.ucla.edu> Reply-To: emacs-devel@gnu.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1479728532 14226 195.159.176.226 (21 Nov 2016 11:42:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 21 Nov 2016 11:42:12 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 21 12:42:06 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c8mz7-0002PL-3S for ged-emacs-devel@m.gmane.org; Mon, 21 Nov 2016 12:42:05 +0100 Original-Received: from localhost ([::1]:48826 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c8mzA-0001Bg-Ff for ged-emacs-devel@m.gmane.org; Mon, 21 Nov 2016 06:42:08 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55794) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c8mye-0001A9-BA for emacs-devel@gnu.org; Mon, 21 Nov 2016 06:41:38 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c8myZ-000095-GY for emacs-devel@gnu.org; Mon, 21 Nov 2016 06:41:36 -0500 Original-Received: from [195.159.176.226] (port=34839 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c8myZ-00007B-9h for emacs-devel@gnu.org; Mon, 21 Nov 2016 06:41:31 -0500 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1c8myR-0004i7-Ic for emacs-devel@gnu.org; Mon, 21 Nov 2016 12:41:23 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 64 Original-X-Complaints-To: usenet@blaine.gmane.org Mail-Copies-To: never Cancel-Lock: sha1:PFXQk7U9BS93R8gdMRlr4BBPhc0= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:209522 Archived-At: Paul Eggert writes: > diff --git a/src/emacs.c b/src/emacs.c > index efd4fa3..ac9b649 100644 > --- a/src/emacs.c > +++ b/src/emacs.c > @@ -130,11 +130,15 @@ Lisp_Object Vlibrary_cache; > on subsequent starts. */ > bool initialized; >=20=20 > +#ifdef CANNOT_DUMP > +enum { might_dump =3D false }; > +#else > /* Set to true if this instance of Emacs might dump. */ > -#ifndef DOUG_LEA_MALLOC > +# ifndef DOUG_LEA_MALLOC > static > -#endif > +# endif > bool might_dump; > +#endif Hi Paul, I guess you're using a more forgiving gcc than I am: GEN globals.h CC emacs.o emacs.c:134:8: error: =E2=80=98might_dump=E2=80=99 redeclared as different = kind of symbol enum { might_dump =3D false }; ^ In file included from emacs.c:36:0: lisp.h:608:13: note: previous declaration of =E2=80=98might_dump=E2=80=99 w= as here extern bool might_dump; $ gcc -v Using built-in specs. COLLECT_GCC=3Dgcc COLLECT_LTO_WRAPPER=3D/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion=3D'Ubuntu 5.4.0-6ubu= ntu1~16.04.4' --with-bugurl=3Dfile:///usr/share/doc/gcc-5/README.Bugs --ena= ble-languages=3Dc,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=3D/usr --= program-suffix=3D-5 --enable-shared --enable-linker-build-id --libexecdir= =3D/usr/lib --without-included-gettext --enable-threads=3Dposix --libdir=3D= /usr/lib --enable-nls --with-sysroot=3D/ --enable-clocale=3Dgnu --enable-li= bstdcxx-debug --enable-libstdcxx-time=3Dyes --with-default-libstdcxx-abi=3D= new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --en= able-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt= =3Dgtk --enable-gtk-cairo --with-java-home=3D/usr/lib/jvm/java-1.5.0-gcj-5-= amd64/jre --enable-java-home --with-jvm-root-dir=3D/usr/lib/jvm/java-1.5.0-= gcj-5-amd64 --with-jvm-jar-dir=3D/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd6= 4 --with-arch-directory=3Damd64 --with-ecj-jar=3D/usr/share/java/eclipse-ec= j.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32= =3Di686 --with-abi=3Dm64 --with-multilib-list=3Dm32,m64,mx32 --enable-multi= lib --with-tune=3Dgeneric --enable-checking=3Drelease --build=3Dx86_64-linu= x-gnu --host=3Dx86_64-linux-gnu --target=3Dx86_64-linux-gnu Thread model: posix gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4)=20