diff options
author | Chih-Hung Hsieh <chh@google.com> | 2015-10-06 15:53:15 -0700 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2015-10-07 22:44:41 +0200 |
commit | 7eff36d5daa6ebca5e6399638a7643af105ae5b0 (patch) | |
tree | 7bfd9c4a93f88135b9f42337d827948aa6b63cdb /tests/testfile_class_func.bz2 | |
parent | daee4714ee3761e2d92f764a724e83875a79a3f0 (diff) | |
download | elfutils-7eff36d5daa6ebca5e6399638a7643af105ae5b0.tar.gz |
Do without union of variable length arrays.
Prepare to compile with clang.
A union like
{ T32 a32[n]; T64 a64[n]; } u;
is expanded to
size_t nbytes = n * MAX(sizeof(T32), sizeof(T64));
void *data = malloc(nbytes);
T32 (*a32)[n] = data;
T64 (*a64)[n] = data;
Signed-off-by: Chih-Hung Hsieh <chh@google.com>
Diffstat (limited to 'tests/testfile_class_func.bz2')
0 files changed, 0 insertions, 0 deletions