Comment
Comment by likoya
The GCC compiler is very unpredictable about what it considers unreachable code. Once, I wanted to avoid reading an array x[i] to save L1 cache space, so I used a computed goto (goto base + delta * i;) followed by return x1; return x2; ... return xn;. However, the compiler decided that only the first two return values were reachable and optimized away the rest of the code