Target support for packed/aligned (1) structs
Florian Weimer
fweimer@redhat.com
Tue Apr 4 19:48:00 GMT 2017
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
More information about the Gcc-help
mailing list