Commit 9f7bfb6c authored by Paul Eggert's avatar Paul Eggert

Port struct Lisp_FLoat to oddball platforms

* src/lisp.h (struct Lisp_Float): Declare via
GCALIGNED_UNION_MEMBER, not via GCALIGNED_STRUCT, since alloc.c
creates these in arrays and GCALIGNED_STRUCT does not necessarily
suffice to align struct Lisp_Float when it’s used in an array.
This avoids undefined behavior on oddball machines where
sizeof (struct Lisp_Float) is not a multiple of 8 and the compiler
does not support __attribute__ ((aligned 8)).
parent c4faf78a
Pipeline #5682 passed with stage
in 57 minutes and 42 seconds
......@@ -2801,8 +2801,10 @@ struct Lisp_Float
{
double data;
struct Lisp_Float *chain;
GCALIGNED_UNION_MEMBER
} u;
} GCALIGNED_STRUCT;
};
verify (GCALIGNED (struct Lisp_Float));
INLINE bool
(FLOATP) (Lisp_Object x)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment