Re: [PATCH v6 4/4] MIPS: Workaround GCC __builtin_unreachable reordering bug
From: Arnd Bergmann <arnd@arndb.de>
Date: 2018-08-09 20:38:45
Also in:
linux-mips, linux-um
From: Arnd Bergmann <arnd@arndb.de>
Date: 2018-08-09 20:38:45
Also in:
linux-mips, linux-um
On Thu, Aug 9, 2018 at 7:45 PM Paul Burton [off-list ref] wrote:
+/* + * With GCC v4.5 onwards can use __builtin_unreachable to indicate to the + * compiler that a particular code path will never be hit. This allows it to be + * optimised out of the generated binary. + * + * Unfortunately GCC from at least v4.9.2 to current head of tree as of May + * 2016 suffer from a bug that can lead to instructions from beyond an
Has anything happened to address this in gcc in the meantime?
Could you update this text to reflect whatever is in current gcc-9?
Arnd