This is the mail archive of the gcc-patches@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: [PATCH] Fix small structure passing on x86-64


> the test here is still bit confused.  It should test if the whole array
> fits in lower 4 bytes that would be somehting like
> (bit_offset + 7) / 8 + bytes <= 4

The change was the minimal one and this was done on purpose.  It's clear that 
forcing a full word for 3 bytes is a little surprising, but that's what the 
pre-existing code was doing.

> There are very intersting problems related to this and reading past end
> of the structure possibly causing segfault.  I am working on more
> complette patch.

Thanks.  The patch has already been applied on the mainline though.

-- 
Eric Botcazou


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