Am Mon, 04 Jun 2012 23:18:31 +0400 schrieb Dmitry Olshansky <[email protected]>:
> Compiler is like a nasty > stepchild it will give up on generating good old jump tables given any > reason it finds justifiable. (but it may use few small jump tables + > binary search, could be fine... if not in a tight loop!) Looks, like you are back in control. From http://gcc.gnu.org/gcc-4.7/changes.html : ** General Optimizer Improvements ** Support for a new parameter --param case-values-threshold=n was added to allow users to control the cutoff between doing switch statements as a series of if statements and using a jump table. -- Marco
