summaryrefslogtreecommitdiff
path: root/src/bin/embryo
diff options
context:
space:
mode:
authorHenrique Dante de Almeida <hdante@profusion.mobi>2013-01-24 16:57:42 -0200
committerLucas De Marchi <lucas.demarchi@profusion.mobi>2013-02-26 10:55:04 -0300
commitca8fc827a380c3525793dbaae7cdc7f8901bf0b6 (patch)
tree91b856b42924ad70e33eb6c91b00636af62d710e /src/bin/embryo
parentcbc203e0bf56c116c17859a064c23eb82e2d669b (diff)
efl: Fixes to support compiling with CFLAGS=-Werror
This allows compiling with gcc 4.7.2 without errors (using the default configuration).
Diffstat (limited to 'src/bin/embryo')
-rw-r--r--src/bin/embryo/embryo_cc_sc1.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/bin/embryo/embryo_cc_sc1.c b/src/bin/embryo/embryo_cc_sc1.c
index 58b4b3cc3f..9fd75092a4 100644
--- a/src/bin/embryo/embryo_cc_sc1.c
+++ b/src/bin/embryo/embryo_cc_sc1.c
@@ -3521,18 +3521,18 @@ doif(void)
3521static void 3521static void
3522dowhile(void) 3522dowhile(void)
3523{ 3523{
3524 int wq[wqSIZE]; /* allocate local queue */ 3524 int lwq[wqSIZE]; /* allocate local queue */
3525 3525
3526 addwhile(wq); /* add entry to queue for "break" */ 3526 addwhile(lwq); /* add entry to queue for "break" */
3527 setlabel(wq[wqLOOP]); /* loop label */ 3527 setlabel(lwq[wqLOOP]); /* loop label */
3528 /* The debugger uses the "line" opcode to be able to "break" out of 3528 /* The debugger uses the "line" opcode to be able to "break" out of
3529 * a loop. To make sure that each loop has a line opcode, even for the 3529 * a loop. To make sure that each loop has a line opcode, even for the
3530 * tiniest loop, set it below the top of the loop */ 3530 * tiniest loop, set it below the top of the loop */
3531 setline(fline, fcurrent); 3531 setline(fline, fcurrent);
3532 test(wq[wqEXIT], TRUE, FALSE); /* branch to wq[wqEXIT] if false */ 3532 test(lwq[wqEXIT], TRUE, FALSE); /* branch to lwq[wqEXIT] if false */
3533 statement(NULL, FALSE); /* if so, do a statement */ 3533 statement(NULL, FALSE); /* if so, do a statement */
3534 jumplabel(wq[wqLOOP]); /* and loop to "while" start */ 3534 jumplabel(lwq[wqLOOP]); /* and loop to "while" start */
3535 setlabel(wq[wqEXIT]); /* exit label */ 3535 setlabel(lwq[wqEXIT]); /* exit label */
3536 delwhile(); /* delete queue entry */ 3536 delwhile(); /* delete queue entry */
3537} 3537}
3538 3538
@@ -3543,18 +3543,18 @@ dowhile(void)
3543static void 3543static void
3544dodo(void) 3544dodo(void)
3545{ 3545{
3546 int wq[wqSIZE], top; 3546 int lwq[wqSIZE], top;
3547 3547
3548 addwhile(wq); /* see "dowhile" for more info */ 3548 addwhile(lwq); /* see "dowhile" for more info */
3549 top = getlabel(); /* make a label first */ 3549 top = getlabel(); /* make a label first */
3550 setlabel(top); /* loop label */ 3550 setlabel(top); /* loop label */
3551 statement(NULL, FALSE); 3551 statement(NULL, FALSE);
3552 needtoken(tWHILE); 3552 needtoken(tWHILE);
3553 setlabel(wq[wqLOOP]); /* "continue" always jumps to WQLOOP. */ 3553 setlabel(lwq[wqLOOP]); /* "continue" always jumps to WQLOOP. */
3554 setline(fline, fcurrent); 3554 setline(fline, fcurrent);
3555 test(wq[wqEXIT], TRUE, FALSE); 3555 test(lwq[wqEXIT], TRUE, FALSE);
3556 jumplabel(top); 3556 jumplabel(top);
3557 setlabel(wq[wqEXIT]); 3557 setlabel(lwq[wqEXIT]);
3558 delwhile(); 3558 delwhile();
3559 needtoken(tTERM); 3559 needtoken(tTERM);
3560} 3560}
@@ -3562,7 +3562,7 @@ dodo(void)
3562static void 3562static void
3563dofor(void) 3563dofor(void)
3564{ 3564{
3565 int wq[wqSIZE], skiplab; 3565 int lwq[wqSIZE], skiplab;
3566 cell save_decl; 3566 cell save_decl;
3567 int save_nestlevel, idx; 3567 int save_nestlevel, idx;
3568 int *ptr; 3568 int *ptr;
@@ -3570,7 +3570,7 @@ dofor(void)
3570 save_decl = declared; 3570 save_decl = declared;
3571 save_nestlevel = nestlevel; 3571 save_nestlevel = nestlevel;
3572 3572
3573 addwhile(wq); 3573 addwhile(lwq);
3574 skiplab = getlabel(); 3574 skiplab = getlabel();
3575 needtoken('('); 3575 needtoken('(');
3576 if (matchtoken(';') == 0) 3576 if (matchtoken(';') == 0)
@@ -3600,7 +3600,7 @@ dofor(void)
3600 ptr[wqBRK] = (int)declared; 3600 ptr[wqBRK] = (int)declared;
3601 ptr[wqCONT] = (int)declared; 3601 ptr[wqCONT] = (int)declared;
3602 jumplabel(skiplab); /* skip expression 3 1st time */ 3602 jumplabel(skiplab); /* skip expression 3 1st time */
3603 setlabel(wq[wqLOOP]); /* "continue" goes to this label: expr3 */ 3603 setlabel(lwq[wqLOOP]); /* "continue" goes to this label: expr3 */
3604 setline(fline, fcurrent); 3604 setline(fline, fcurrent);
3605 /* Expressions 2 and 3 are reversed in the generated code: 3605 /* Expressions 2 and 3 are reversed in the generated code:
3606 * expression 3 precedes expression 2. 3606 * expression 3 precedes expression 2.
@@ -3617,7 +3617,7 @@ dofor(void)
3617 setlabel(skiplab); /*jump to this point after 1st expression */ 3617 setlabel(skiplab); /*jump to this point after 1st expression */
3618 if (matchtoken(';') == 0) 3618 if (matchtoken(';') == 0)
3619 { 3619 {
3620 test(wq[wqEXIT], FALSE, FALSE); /* expression 2 3620 test(lwq[wqEXIT], FALSE, FALSE); /* expression 2
3621 *(jump to wq[wqEXIT] if false) */ 3621 *(jump to wq[wqEXIT] if false) */
3622 needtoken(';'); 3622 needtoken(';');
3623 } /* if */ 3623 } /* if */
@@ -3632,8 +3632,8 @@ dofor(void)
3632 stgout(idx); 3632 stgout(idx);
3633 stgset(FALSE); /* stop staging */ 3633 stgset(FALSE); /* stop staging */
3634 statement(NULL, FALSE); 3634 statement(NULL, FALSE);
3635 jumplabel(wq[wqLOOP]); 3635 jumplabel(lwq[wqLOOP]);
3636 setlabel(wq[wqEXIT]); 3636 setlabel(lwq[wqEXIT]);
3637 delwhile(); 3637 delwhile();
3638 3638
3639 assert(nestlevel >= save_nestlevel); 3639 assert(nestlevel >= save_nestlevel);