|From:||Michael B. Smith|
|Subject:||Re: [Tinycc-devel] MAJOR bug: tcc doesn't detect duplicate cases in switch statements|
|Date:||Sat, 12 Mar 2016 04:00:55 +0000|
I am a rare poster here – but I think your patch leads to all sorts of problems.
Please revert it/don’t commit it.
From: tinycc-devel-bounces+address@hidden [mailto:tinycc-devel-bounces+address@hidden
On Behalf Of Amine Najahi
Hi Arnold and tcc folks,
Perhaps surprisingly, correcting this bug is quite costly.
Here is a tentative patch. I find it messy but working with dynamic data
and passing the cases to the block function are necessary to handle
an "unlimited number" of cases and nested switch blocks.
Also, since the 'block' function is starting to have too many arguments, I
suggest to create a structure that assembles related arguments such
that def_sym, case_sym, cases, and cases_cnt, and any other...
Does that sound ok?
On Thu, Mar 10, 2016 at 2:41 PM, <address@hidden> wrote:
|[Prev in Thread]||Current Thread||[Next in Thread]|