Use flexmembers on IBM XL C for AIX
commitd9741b61c8e446de084cc4dc609aaa8e5702118d
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 20 Sep 2016 15:30:17 +0000 (20 08:30 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 20 Sep 2016 15:32:15 +0000 (20 08:32 -0700)
treebc7dee77f208e70918e0c15aa91eb728f27b0c47
parent83fbb3a6dd75e01a768cb6b3348b7c947711ee46
Use flexmembers on IBM XL C for AIX

This removes a workaround where Emacs did not use flexible
array members when compiled with IBM XL C.  Instead, avoid
the problem by making the aliasing issues more obvious to
this compiler.
* admin/merge-gnulib: Don’t remove m4/flexmember.m4.
* m4/flexmember.m4: Copy from gnulib.
* configure.ac (AC_C_FLEXIBLE_ARRAY_MEMBER): Remove workaround.
* src/alloc.c (allocate_string_data): Rephrase to avoid aliasing
problem that would otherwise mess up code generated for flexible
array members by IBM XL C for AIX, V12.1.
* src/conf_post.h (FLEXIBLE_ARRAY_MEMBER): Remove; now done
by gnulib code.
admin/merge-gnulib
configure.ac
m4/flexmember.m4 [new file with mode: 0644]
src/alloc.c
src/conf_post.h