This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: x86_64: Should the -mavx* options affected __alignof__ (max_align_t)?


On 04/02/2015 09:46 AM, Florian Weimer wrote:
> On 04/02/2015 10:40 AM, Andrew Haley wrote:
> 
>> So, max_align_t is an object type, and therefore malloc returns a
>> pointer suitable for max_align_t.
> 
> Then the GCC definition of max_align_t is incorrect, it should be 8 on
> x86_64 GNU/Linux, because traditionally, that's what mallocs implement
> for this architecture.  (dlmalloc in glibc is an exception.)

Or the libcs are wrong; one or the other.

Andrew.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]