GCC expands switch statements in a very simplistic way and tries to use a table