Re: Extended Assembler gets goto support

2014-09-27 Thread Daniel N via D.gnu
On Saturday, 27 September 2014 at 18:29:44 UTC, Iain Buclaw wrote: The added fourth section tells the GCC optimizer that this asm statement may jump to the label 'MyLabel', so the block following doesn't get marked as unreachable code. Kick Ass! I recently had this exact problem, thank you s

Extended Assembler gets goto support

2014-09-27 Thread Iain Buclaw via D.gnu
I've been promising myself to get round to adding support for this, well now it is very close to hitting the master repos. Say hello to GCC's "asm goto" support in GDC. --- int main() { asm { "jmp %l[MyLabel]" : : : : MyLabel; } return 0; MyLabel: return 1; } --- The added fourth sectio