On Wed, Jul 08, 2015 at 04:49:19PM +0800, Kito Cheng wrote: > Bootstrapped & regression-tested on x86_64-linux-gnu :) > > 2015-07-08 Kito Cheng <kito.ch...@gmail.com> > > * function.c (stack_protect_epilogue): Use if rather than switch for > check targetm.have_stack_protect_test().
Do you really need this? This should be just non-fatal warning in stage1, and only if you compile with gcc-5, right? You could also just cast the controlling expression of the switch to int to suppress the warning. Marek