On 04/04/2017 09:35 PM, Martin Sebor wrote:
There are target-independent tests in the test suite that exercise this support so I'd say the answer is yes. For example gcc.c-torture/execute/strct-pack-1.c (there are others as well).
Okay, I found gcc.c-torture/execute/20100430-1.c, which actually generates misalignment.
So I'll proceed under the assumption that this in fact works. (And perhaps design things in such a way that we can easily test with misaligned buffers, just to be on the safe side.)
Thanks, Florian