projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Applied patch #2762516
[fw/sdcc]
/
src
/
SDCC.y
diff --git
a/src/SDCC.y
b/src/SDCC.y
index ef699343deb1ebe5302611cea4e5998e94659c74..fa165cef8a7241af3357d437e5b64218ae986435 100644
(file)
--- a/
src/SDCC.y
+++ b/
src/SDCC.y
@@
-926,6
+926,7
@@
struct_declarator
if (!bitsize)
bitsize = BITVAR_PAD;
$$->bitVar = bitsize;
if (!bitsize)
bitsize = BITVAR_PAD;
$$->bitVar = bitsize;
+ $$->bitUnnamed = 1;
}
| declarator ':' constant_expr
{
}
| declarator ':' constant_expr
{
@@
-1550,6
+1551,8
@@
selection_statement
{
noLineno++ ;
$$ = createIf ($3, $6, $7 );
{
noLineno++ ;
$$ = createIf ($3, $6, $7 );
+ $$->lineno = $3->lineno;
+ $$->filename = $3->filename;
noLineno--;
}
| SWITCH '(' expr ')' {
noLineno--;
}
| SWITCH '(' expr ')' {
@@
-1630,7
+1633,8
@@
iteration_statement
noLineno++ ;
$$ = createWhile ( $1, STACK_POP(continueStack),
STACK_POP(breakStack), $3, $6 );
noLineno++ ;
$$ = createWhile ( $1, STACK_POP(continueStack),
STACK_POP(breakStack), $3, $6 );
- $$->lineno = $1->lineDef ;
+ $$->lineno = $1->lineDef;
+ $$->filename = $1->fileDef;
noLineno-- ;
}
| do statement WHILE '(' expr ')' ';'
noLineno-- ;
}
| do statement WHILE '(' expr ')' ';'
@@
-1639,7
+1643,8
@@
iteration_statement
noLineno++ ;
$$ = createDo ( $1 , STACK_POP(continueStack),
STACK_POP(breakStack), $5, $2);
noLineno++ ;
$$ = createDo ( $1 , STACK_POP(continueStack),
STACK_POP(breakStack), $5, $2);
- $$->lineno = $1->lineDef ;
+ $$->lineno = $1->lineDef;
+ $$->filename = $1->fileDef;
noLineno-- ;
}
| for '(' expr_opt ';' expr_opt ';' expr_opt ')' statement
noLineno-- ;
}
| for '(' expr_opt ';' expr_opt ';' expr_opt ')' statement