Re enabled gcc attributes.
Changing direct API for real multidim.