GNU bug report logs - #15825
unidata-gen seems messed up somehow

Previous Next

Package: emacs;

Reported by: Glenn Morris <rgm <at> gnu.org>

Date: Thu, 7 Nov 2013 03:18:02 UTC

Severity: important

Found in version 24.3.50

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

Bug is archived. No further changes may be made.

Full log


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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Glenn Morris <rgm <at> gnu.org>
Cc: eggert <at> cs.ucla.edu, 15825 <at> debbugs.gnu.org
Subject: Re: bug#15825: unidata-gen seems messed up somehow
Date: Fri, 08 Nov 2013 09:49:00 +0200
> From: Glenn Morris <rgm <at> gnu.org>
> cc: Eli Zaretskii <eliz <at> gnu.org>, Paul Eggert <eggert <at> cs.ucla.edu>
> Date: Thu, 07 Nov 2013 16:36:22 -0500
> 
> 
> Bisected to:
> 
> revno: 113123
> committer: Paul Eggert <eggert <at> cs.ucla.edu>
> branch nick: trunk
> timestamp: Fri 2013-06-21 13:11:44 -0700
> message:
>   Use C99-style flexible array members if available.

So you are saying that this part of that change is the culprit:

@@ -1366,7 +1370,7 @@ struct Lisp_Subr
    slots.  */
 enum CHAR_TABLE_STANDARD_SLOTS
   {
-    CHAR_TABLE_STANDARD_SLOTS = VECSIZE (struct Lisp_Char_Table) - 1
+    CHAR_TABLE_STANDARD_SLOTS = PSEUDOVECSIZE (struct Lisp_Char_Table, extras)
   };

What does 'sizeof' return for a struct that has array[0] at the end?




This bug report was last modified 11 years and 280 days ago.

Previous Next


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