On 12/04/15 13:44, Nathan Sidwell wrote:
I've committed this patch to unify the variable emission machinery. All four hooks were doing small variations of a common theme. This introduces nvptx_assemble_decl_begin to do the common work. While there, I expanded the init initialization code to work with multi-dimensional arrays.
I forgot to mention that undefined decls are now emitted with the expected size, rather than a plain '.b8'. This fixed one of the struct compatibility tests, and I suspect a bunch of other inter-linking cases.
nathan