Path: blob/next/external/patch/misc/compiler.patch
18115 views
--- a/arch/arm/kernel/asm-offsets.c1+++ b/arch/arm/kernel/asm-offsets.c2@@ -10,6 +10,7 @@3* it under the terms of the GNU General Public License version 2 as4* published by the Free Software Foundation.5*/6+#include <linux/compiler.h>7#include <linux/sched.h>8#include <linux/mm.h>9#include <linux/dma-mapping.h>10@@ -39,10 +40,19 @@11* GCC 3.2.x: miscompiles NEW_AUX_ENT in fs/binfmt_elf.c12* (http://gcc.gnu.org/PR8896) and incorrect structure13* initialisation in fs/jffs2/erase.c14+ * GCC 4.8.0-4.8.2: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=5885415+ * miscompiles find_get_entry(), and can result in EXT3 and EXT416+ * filesystem corruption (possibly other FS too).17*/18+#ifdef __GNUC__19#if (__GNUC__ == 3 && __GNUC_MINOR__ < 3)20#error Your compiler is too buggy; it is known to miscompile kernels.21-#error Known good compilers: 3.322+#error Known good compilers: 3.3, 4.x23+#endif24+#if GCC_VERSION >= 40800 && GCC_VERSION < 4080325+#error Your compiler is too buggy; it is known to miscompile kernels26+#error and result in filesystem corruption and oopses.27+#endif28#endif2930int main(void)313233