File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,13 @@ int main()
6
6
#ifdef __GNUC__
7
7
asm goto ("jc %l[error];"
8
8
: : "r" (x ), "r" (& y ) : "memory" : error );
9
- asm __inline volatile ("jc %l[error];" : : "r" (x ), "r" (& y ) : "memory" : error );
9
+ asm
10
+ # 11
11
+ __inline volatile ("jc %l[error];"
12
+ :
13
+ : "r" (x ), "r" (& y )
14
+ : "memory"
15
+ : error );
10
16
#endif
11
17
error :
12
18
return 0 ;
Original file line number Diff line number Diff line change @@ -1637,6 +1637,10 @@ __decltype { if(PARSER.cpp98 &&
1637
1637
/* The following ugly stuff avoids two-token lookahead in the parser;
1638
1638
e.g., asm void f() vs. asm ("xyz") or asm { ... } */
1639
1639
<GCC_ASM >{
1640
+ {cpplineno } {
1641
+ preprocessor_line (yytext, PARSER);
1642
+ PARSER.set_line_no (PARSER.get_line_no ()-1 );
1643
+ }
1640
1644
{ws } { /* ignore */ }
1641
1645
{newline } { /* ignore */ }
1642
1646
" {" { yyless (0 ); BEGIN (GRAMMAR); loc (); PARSER.asm_block_following =true ; return TOK_GCC_ASM_PAREN; }
You can’t perform that action at this time.
0 commit comments