emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: emacs-26 9e59de9: Use GCALIGNED properly for GCC


From: Paul Eggert
Subject: Re: emacs-26 9e59de9: Use GCALIGNED properly for GCC
Date: Fri, 10 Nov 2017 23:08:44 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0

Paul Eggert wrote:

I have thought of a solution that fixes the problem by dropping use of GCALIGNED and instead using classic C unions along with 'char alignas (8)'.

Patches attached. They work for me on various platforms including gcc -m32 on Fedora 26 x86-64 (which is close to the platform Glenn mentioned). The 2nd patch does the real work: most of it consists of changing private accessors to account for the newly-introduced unions. It shrinks the source code a bit, which is a good sign. I plan to test a bit more before installing; comments welcome.

Attachment: 0001-Change-vectorlike-from-struct-to-union.txt
Description: Text document

Attachment: 0002-Use-alignas-to-fix-GCALIGN-related-bugs.txt
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]