From fc2607009039ccd20b3fa935e62fed1405e7c4d4 Mon Sep 17 00:00:00 2001 From: Wolfgang Wiedmeyer Date: Fri, 12 May 2017 18:31:05 +0200 Subject: fs/ntfs: Disable optimization for ntfs_runlists_merge GCC version 5.4.1+svn241155-1 in Debian Stretch has a bug that breaks the build. The error is attached. TODO: Figure out the actual bug or revert patch if a newer GCC is available in Stretch. /home/wolfi/replicant/6.0-romsrc-official/kernel/samsung/tuna/fs/ntfs/runlist.c: In function 'ntfs_runlists_merge': /home/wolfi/replicant/6.0-romsrc-official/kernel/samsung/tuna/fs/ntfs/runlist.c:719:1: error: insn does not satisfy its constraints: } ^ (insn 1914 3742 3628 272 (parallel [ (set (reg:SI 2 r2 [orig:463 D.21528 ] [463]) (and:SI (geu:SI (reg:SI 2 r2 [orig:463 D.21528 ] [463]) (reg:SI 3 r3 [orig:1339 D.21528 ] [1339])) (leu:SI (reg:SI 2 r2 [orig:463 D.21528 ] [463]) (const_int -134217729 [0xfffffffff7ffffff])))) (clobber (reg:CC 100 cc)) ]) /home/wolfi/replicant/6.0-romsrc-official/kernel/samsung/tuna/include/linux/mm.h:315 256 {*and_scc_scc_nodom} (nil)) /home/wolfi/replicant/6.0-romsrc-official/kernel/samsung/tuna/fs/ntfs/runlist.c:719:1: internal compiler error: in extract_constrain_insn, at recog.c:2246 /home/wolfi/replicant/6.0-romsrc-official/kernel/samsung/tuna/fs/ntfs/runlist.c:719:1: internal compiler error: Segmentation fault arm-none-eabi-gcc: internal compiler error: Segmentation fault (program cc1) Signed-off-by: Wolfgang Wiedmeyer --- fs/ntfs/runlist.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/ntfs/runlist.c b/fs/ntfs/runlist.c index eac7d67..53a8258 100644 --- a/fs/ntfs/runlist.c +++ b/fs/ntfs/runlist.c @@ -494,6 +494,7 @@ static inline runlist_element *ntfs_rl_split(runlist_element *dst, int dsize, return dst; } +#pragma GCC optimize ("O0") /** * ntfs_runlists_merge - merge two runlists into one * @drl: original runlist to be worked on @@ -717,6 +718,7 @@ finished: ntfs_debug_dump_runlist(drl); return drl; } +#pragma GCC reset_options /** * ntfs_mapping_pairs_decompress - convert mapping pairs array to runlist -- cgit v1.1