+2007-02-09 Borut Razem <borut.razem AT siol.net>
+
+ * src/SDCC.y: fixed bug #1159134: invalid duplicate declarations with
+ same scope
+
2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
* src/mcs51/gen.c (aopPut): use direct name for pushing registers
* src/SDCCBlock.c (addiCodeToeBBlock): fixed bug 1652207: GOTO icodes
appended by loop induction must be at the very end of the eBBlock
+2007-02-05 Kevin Vigor
+
+ * src/ds390/gen.c, src/ds390/main.c: Address bug 1469393.
+
2007-02-05 Borut Razem <borut.razem AT siol.net>
* support/regression/fwk/lib/timeout.c: native WIN32 port,
$$ = cenum = constVal(lbuff);
}
else {
- SNPRINTF(lbuff, sizeof(lbuff),
- "%d",0);
- $$ = cenum = constVal(lbuff);
+ $$ = cenum = constVal("0");
}
}
;
;
compound_statement
- : start_block end_block { $$ = createBlock(NULL,NULL); }
- | start_block statement_list end_block { $$ = createBlock(NULL,$2) ; }
+ : start_block end_block { $$ = createBlock(NULL, NULL); }
+ | start_block statement_list end_block { $$ = createBlock(NULL, $2); }
+ | start_block declaration_list end_block { $$ = createBlock($2, NULL); }
| start_block
- declaration_list { addSymChain(&$2); }
- end_block { $$ = createBlock($2,NULL) ; }
- | start_block
- declaration_list { addSymChain (&$2); }
- statement_list
- end_block {$$ = createBlock($2,$4) ; }
+ declaration_list statement_list
+ end_block {$$ = createBlock($2, $3); }
| error ';' { $$ = NULL ; }
;
else
$$ = $1 ;
ignoreTypedefType = 0;
+ addSymChain(&$1);
}
| declaration_list declaration
$$ = $2 ;
}
ignoreTypedefType = 0;
+ addSymChain(&$2);
}
;