Mercurial > projects > ldc
comparison dmd/statement.c @ 232:092468448d25 trunk
[svn r248] Fixed: labels in inline asm block now work for the normal case.
Fixed: inline asm blocks are now emitted as a single asm entity.
author | lindquist |
---|---|
date | Sun, 08 Jun 2008 06:15:51 +0200 |
parents | a58d8f4b84df |
children | 88252a1af660 |
comparison
equal
deleted
inserted
replaced
231:61aa721a6b7f | 232:092468448d25 |
---|---|
465 } | 465 } |
466 } | 466 } |
467 } | 467 } |
468 i++; | 468 i++; |
469 } | 469 } |
470 if (statements->dim == 1) | 470 if (statements->dim == 1 && !isAsmBlockStatement()) |
471 return s; | 471 return s; |
472 return this; | 472 return this; |
473 } | 473 } |
474 | 474 |
475 Statements *CompoundStatement::flatten(Scope *sc) | 475 Statements *CompoundStatement::flatten(Scope *sc) |
3591 | 3591 |
3592 LabelDsymbol::LabelDsymbol(Identifier *ident) | 3592 LabelDsymbol::LabelDsymbol(Identifier *ident) |
3593 : Dsymbol(ident) | 3593 : Dsymbol(ident) |
3594 { | 3594 { |
3595 statement = NULL; | 3595 statement = NULL; |
3596 #if IN_GCC | |
3597 asmLabelNum = 0; | 3596 asmLabelNum = 0; |
3598 #endif | |
3599 } | 3597 } |
3600 | 3598 |
3601 LabelDsymbol *LabelDsymbol::isLabel() // is this a LabelDsymbol()? | 3599 LabelDsymbol *LabelDsymbol::isLabel() // is this a LabelDsymbol()? |
3602 { | 3600 { |
3603 return this; | 3601 return this; |