
Dear Benoît Thébaudeau,
In message 1135126743.1842859.1379415574013.JavaMail.zimbra@advansee.com you wrote:
So how can the above not properly align the buffer? Is that a compiler bug then?
btw. using ALLOC_CACHE_ALIGN_BUFFER will be safer were someone to change FEC_MAX_PKT_SIZE, the buffer would still be safe for cache flush/inval ops.
I have encountered the same kind of alignment issue recently on something else. It looks like GCC for ARM just silently ignores the aligned attribute for auto (stacked) variables.
I would really like to see the generated code from such a system, so we verify if this is indeed true, or if something else is causing such issues.
Even if the suggested patch fixes the current problem, it leaves a bad feeling as it's only based on speculation about the causes.
Best regards,
Wolfgang Denk