From 4a8e13e4dc307cf13e3ef652fd20e7b18b827302 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Igor=20Pe=C4=8Dovnik?= Date: Sun, 27 Dec 2015 16:28:32 +0100 Subject: [PATCH] Delete one patch too many --- patch/kernel/compiler.patch | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 patch/kernel/compiler.patch diff --git a/patch/kernel/compiler.patch b/patch/kernel/compiler.patch new file mode 100644 index 0000000000..c46352d4eb --- /dev/null +++ b/patch/kernel/compiler.patch @@ -0,0 +1,31 @@ +--- a/arch/arm/kernel/asm-offsets.c ++++ b/arch/arm/kernel/asm-offsets.c +@@ -10,6 +10,7 @@ + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ ++#include + #include + #include + #include +@@ -39,10 +40,19 @@ + * GCC 3.2.x: miscompiles NEW_AUX_ENT in fs/binfmt_elf.c + * (http://gcc.gnu.org/PR8896) and incorrect structure + * initialisation in fs/jffs2/erase.c ++ * GCC 4.8.0-4.8.2: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58854 ++ * miscompiles find_get_entry(), and can result in EXT3 and EXT4 ++ * filesystem corruption (possibly other FS too). + */ ++#ifdef __GNUC__ + #if (__GNUC__ == 3 && __GNUC_MINOR__ < 3) + #error Your compiler is too buggy; it is known to miscompile kernels. +-#error Known good compilers: 3.3 ++#error Known good compilers: 3.3, 4.x ++#endif ++#if GCC_VERSION >= 40800 && GCC_VERSION < 40803 ++#error Your compiler is too buggy; it is known to miscompile kernels ++#error and result in filesystem corruption and oopses. ++#endif + #endif + + int main(void)