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
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