On 04/20/16 12:58, Alexander Monakov wrote:
Allow using __attribute__((shared)) to place static variables in '.shared' memory space.
What is the rationale for a new attribute, rather than leveraging the existing section(".shared") machinery?
+ else if (current_function_decl && !TREE_STATIC (decl)) + { + error ("%qE attribute only applies to non-stack variables", name);
'non-stack'? don't you mean 'static' or 'static storage'? Needs a test case. nathan