[PATCH v9 2/2] MIPS: Workaround GCC __builtin_unreachable reordering bug

2018-08-20 Thread Paul Burton
Some versions of GCC for the MIPS architecture suffer from a bug which can lead to instructions from beyond an unreachable statement being incorrectly reordered into earlier branch delay slots if the unreachable statement is the only content of a case in a switch statement. This can lead to

[PATCH v9 2/2] MIPS: Workaround GCC __builtin_unreachable reordering bug

2018-08-20 Thread Paul Burton
Some versions of GCC for the MIPS architecture suffer from a bug which can lead to instructions from beyond an unreachable statement being incorrectly reordered into earlier branch delay slots if the unreachable statement is the only content of a case in a switch statement. This can lead to