File tree 3 files changed +9
-6
lines changed
3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 3
3
int main ()
4
4
{
5
5
int x , y ;
6
- #ifdef __GNUC__
6
+ #ifdef __GNUC__
7
7
asm goto ("jc %l[error];"
8
8
: : "r" (x ), "r" (& y ) : "memory" : error );
9
- #endif
9
+ asm __inline volatile ("jc %l[error];" : : "r" (x ), "r" (& y ) : "memory" : error );
10
+ #endif
10
11
error :
11
12
return 0 ;
12
13
}
Original file line number Diff line number Diff line change @@ -2675,10 +2675,9 @@ cprover_exception_statement:
2675
2675
2676
2676
volatile_or_goto_opt:
2677
2677
/* nothing */
2678
- | TOK_VOLATILE
2679
- | TOK_GOTO
2680
- | TOK_GOTO TOK_VOLATILE
2681
- | TOK_VOLATILE TOK_GOTO
2678
+ | volatile_or_goto_opt TOK_VOLATILE
2679
+ | volatile_or_goto_opt TOK_GOTO
2680
+ | volatile_or_goto_opt TOK_INLINE
2682
2681
;
2683
2682
2684
2683
/* asm ( assembler template
Original file line number Diff line number Diff line change @@ -1639,6 +1639,9 @@ __decltype { if(PARSER.cpp98 &&
1639
1639
" __volatile" { yyless (0 ); BEGIN (GRAMMAR); loc (); return TOK_GCC_ASM_PAREN; }
1640
1640
" __volatile__" { yyless (0 ); BEGIN (GRAMMAR); loc (); return TOK_GCC_ASM_PAREN; }
1641
1641
" goto" { yyless (0 ); BEGIN (GRAMMAR); loc (); return TOK_GCC_ASM_PAREN; }
1642
+ " inline" { yyless (0 ); BEGIN (GRAMMAR); loc (); return TOK_GCC_ASM_PAREN; }
1643
+ " __inline" { yyless (0 ); BEGIN (GRAMMAR); loc (); return TOK_GCC_ASM_PAREN; }
1644
+ " __inline__" { yyless (0 ); BEGIN (GRAMMAR); loc (); return TOK_GCC_ASM_PAREN; }
1642
1645
. { yyless (0 ); BEGIN (GRAMMAR); loc (); PARSER.asm_block_following =true ; return TOK_GCC_ASM; }
1643
1646
}
1644
1647
You can’t perform that action at this time.
0 commit comments