GNU bug report logs - #11604
USE_LISP_UNION_TYPE + USE_LSB_TAG cleanup.

Previous Next

Package: emacs;

Reported by: Paul Eggert <eggert <at> cs.ucla.edu>

Date: Fri, 1 Jun 2012 23:40:02 UTC

Severity: minor

Tags: patch

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


Message #26 received at 11604 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Andreas Schwab <schwab <at> linux-m68k.org>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 11604 <at> debbugs.gnu.org
Subject: Re: bug#11604: USE_LISP_UNION_TYPE + USE_LSB_TAG cleanup.
Date: Sun, 03 Jun 2012 00:37:22 -0700
On 06/03/2012 12:26 AM, Andreas Schwab wrote:
> You don't need a bitfield for that, just a
> struct around EMACS_INT.

That thought had also occurred to me.  I avoided it only
because it would be a bigger change.  But it would also
work and it would clean things up further.

My impression is that the union + bitfield was the original implementation,
that it was replaced long ago by integers for performance reasons, and that
the only remaining reason for the union is for debugging.
For example, "./configure --help" says:

  --enable-use-lisp-union-type
                          use a union for the Lisp_Object data type. This is
                          only useful for development for catching certain
                          types of bugs.




This bug report was last modified 12 years and 302 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.