Is it OK to apply this attribute to a (file-scope or block-scope) static variable or function in C (and if it is, what's the linkage of the resulting alias)? That doesn't seem very clear to me from the documentation, and I'd also expect a testcase of this, whatever the answer is.
What's the interaction with visibility attributes, pragmas and options? Do the aliases have the same visibility as the main declaration, or do they have the visibility that would be given to a declaration in the current context (command-line options and pragmas)? If the latter, there's the question of what context is relevant when there are multiple declarations of an object or function, some of which might have sym_alias attributes and some of which might not. Again, I think this should be documented and tested, whatever the decision about the desired semantics. -- Joseph S. Myers jos...@codesourcery.com