Re: [Tinycc-devel] Patch for review - duplicate case label checking in switches

2016-09-16 Thread Aharon Robbins
las <zde...@gmail.com> > Date: Thu, 15 Sep 2016 11:09:30 +0200 > Message-ID: > <CAB_C_HD4JXMVQMHZu+o87f1R-3w2cFj1ujCU60cuG=cfudp...@mail.gmail.com> > To: tinycc-devel@nongnu.org > Subject: [Tinycc-devel] Patch for review - duplicate case label checking in > switch

[Tinycc-devel] Patch for review - duplicate case label checking in switches

2016-09-15 Thread Zdeněk Pavlas
Hi Arnold, The current TOK_SWITCH/TOK_CASE code clearly prefers simplicity over performance and features. It was just fine for OTCC but I agree with you it should be improved. However, I don't like this patch, because it adds time+space complexity without improving generated code in any way.

[Tinycc-devel] Patch for review - duplicate case label checking in switches

2016-09-12 Thread arnold
Hello All. Some time ago I left the list after a discussion about checking for duplicate case labels, which didn't exist in tinycc. I was told that it would slow down compilation times. I recently added this checking to current mob. The patch is under 100 lines of straightforward code. I saw no