Re: [PATCH] Raw versions of if and switch.

2011-04-20 Thread Edward Z. Yang
Yep! I'll push this patch then. Edward Excerpts from Simon Marlow's message of Wed Apr 20 05:25:27 -0400 2011: > On 19/04/2011 22:53, Edward Z. Yang wrote: > > This makes the following statements valid C--, which uses the > > block ID directly rather than generating an anonymous block: > > > >

Re: [PATCH] Raw versions of if and switch.

2011-04-20 Thread Simon Marlow
On 19/04/2011 22:53, Edward Z. Yang wrote: This makes the following statements valid C--, which uses the block ID directly rather than generating an anonymous block: if (expr) goto foo; switch expr { case 0: goto foo; case 1: goto bar; } Looks fine to me - did

[PATCH] Raw versions of if and switch.

2011-04-19 Thread Edward Z. Yang
This makes the following statements valid C--, which uses the block ID directly rather than generating an anonymous block: if (expr) goto foo; switch expr { case 0: goto foo; case 1: goto bar; } Signed-off-by: Edward Z. Yang --- compiler/cmm/CmmParse.y | 28 +++