[rfc] Fix PR52770 (supoport throwing asms)

2012-03-30 Thread Michael Matz
Hi, So here's an extended variant of my hack that implements throwing asms. Like rth proposed I've added a new pseudo clobber, "throw": int f (void) { int x, y; x = 1; y = 2; try { __asm__ ("" : "=r"(x), "=r"(y) : : "throw"); } catch (...) { return 2+x+y; } return x+y; }

Re: [rfc] Fix PR52770 (supoport throwing asms)

2012-03-30 Thread Richard Henderson
On 03/30/2012 12:37 PM, Michael Matz wrote: > Not yet regstrapped, so no rfa, but does this seem sane? It definitely seems plausible. I can't immediately think of anything you might have forgotten. r~

Re: [rfc] Fix PR52770 (supoport throwing asms)

2012-03-30 Thread Richard Henderson
On 03/30/2012 12:43 PM, Richard Henderson wrote: > On 03/30/2012 12:37 PM, Michael Matz wrote: >> Not yet regstrapped, so no rfa, but does this seem sane? > > It definitely seems plausible. I can't immediately think of > anything you might have forgotten. Stating the obvious, but you'd do well t