From: Ralf Baechle Date: Thu, 14 Mar 2013 17:49:26 +0000 (+0100) Subject: MIPS: Avoid overoptimization by GCC. X-Git-Tag: v3.10-rc1~15^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1186e4e904839955e5d2be94f50e0a363cb5651b;p=pandora-kernel.git MIPS: Avoid overoptimization by GCC. Without this, it's possible that LTO will discard the calls to set_except_vector() in the probe for the DADDI overflow bug resulting in a kernel crash like this: [...] Mount-cache hash table entries: 256 Checking for the daddi bug... Integer overflow[#1]: Cpu 0 $ 0 : 0000000000000000 0000000010008ce1 0000000000000001 0000000000000000 $ 4 : 7fffffffffffedcd ffffffff81410000 0000000000000030 000000000000003f [...] There are other similar places in the kernel so we've just been lucky that GCC's been tolerant. Signed-off-by: Ralf Baechle --- Reading git-diff-tree failed