[PATCH v3 3/3] MIPS: Workaround GCC __builtin_unreachable reordering bug

2018-04-17 Thread James Hogan
From: Paul Burton Older 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

[PATCH v3 3/3] MIPS: Workaround GCC __builtin_unreachable reordering bug

2018-04-17 Thread James Hogan
From: Paul Burton Older 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.