Fix handling of case_reg in switch statement.
commitff3f9aa6ba4a2f56a3cb0c4532ce0460c834ba6d
authorEdmund Grimley Evans <Edmund.Grimley.Evans@gmail.com>
Fri, 20 Feb 2015 23:16:00 +0000 (20 23:16 +0000)
committerEdmund Grimley Evans <Edmund.Grimley.Evans@gmail.com>
Fri, 20 Feb 2015 23:16:00 +0000 (20 23:16 +0000)
treeb060b3d9fa1b1bdfde90251ec5ebcf37c5f16c72
parenta6c3ce6ec03516d850e6b987fcbe95aba192b76b
Fix handling of case_reg in switch statement.

The back end functions gen_op(comparison) and gtst() might allocate
registers so case_reg should be left on the value stack while they
are called and set again afterwards.
tccgen.c