Take the following code: void f(void) { int a __attribute__((model(small))); }
We should reject the attribute but don't as of today even though the code in ia64.c thinks it should be rejected: case VAR_DECL: if ((DECL_CONTEXT (decl) && TREE_CODE (DECL_CONTEXT (decl)) == FUNCTION_DECL) && !TREE_STATIC (decl)) { error ("%Jan address area attribute cannot be specified for " "local variables", decl); *no_add_attrs = true; } -- Summary: Accepts model on local variables Product: gcc Version: 4.1.0 Status: UNCONFIRMED Keywords: accepts-invalid Severity: minor Priority: P2 Component: target AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: pinskia at gcc dot gnu dot org CC: gcc-bugs at gcc dot gnu dot org GCC target triplet: ia64-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23876