+2001-09-06 <johan@FRIJA>
+
+ * src/SDCC.y: this could be a fix for bug #458744
+
2001-09-05 <johan@FRIJA>
* src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
}
| '(' ')' { $$ = NULL;}
| '(' parameter_type_list ')' { $$ = NULL;}
- | abstract_declarator2 '(' ')'
- | abstract_declarator2 '(' parameter_type_list ')'
- ;
+ | abstract_declarator2 '(' ')' {
+ if (getenv("DONT_IGNORE_FUNCTION_SPECIFIERS")) {
+ // this was previously ignored (cvs < 1.37)
+ // but $1 must be a pointer that points to a function
+ sym_link *p=newLink();
+ DCL_TYPE(p) = FUNCTION;
+ $1->next=p;
+ }
+ }
+ | abstract_declarator2 '(' parameter_type_list ')' {
+ if (getenv("DONT_IGNORE_FUNCTION_SPECIFIERS")) {
+ // this was previously ignored (cvs < 1.37)
+ // this is nonsense, so let's just burp something
+ werror(E_TOO_FEW_PARMS);
+ }
+ }
initializer
: assignment_expr { $$ = newiList(INIT_NODE,$1); }