<div dir="ltr">Looks like recent -ffunction-sections patches broke the following test:<div><br></div><div><div>[ 5625s] /home/abuild/rpmbuild/BUILD/llvm/stage2/./bin/clang  -no-canonical-prefixes /home/abuild/rpmbuild/BUILD/llvm/tools/clang/test/Driver/function-sections.c -### -fsyntax-only 2>&1            -target i386-unknown-linux      -fdata-sections -fno-data-sections -fdata-sections    | FileCheck --check-prefix=CHECK-DS /home/abuild/rpmbuild/BUILD/llvm/tools/clang/test/Driver/function-sections.c</div>

<div>[ 5625s] --</div><div>[ 5625s] Exit Code: 1</div><div>[ 5625s] </div><div>[ 5625s] Command Output (stderr):</div><div>[ 5625s] --</div><div>[ 5625s] <stdin>:5:293: error: CHECK-NOFS-NOT: string occurred!</div>
<div>
[ 5625s]  "/home/abuild/rpmbuild/BUILD/llvm/stage2/./bin/clang" "-cc1" "-triple" "i386-unknown-linux" "-fsyntax-only" "-disable-free" "-main-file-name" "function-sections.c" "-mrelocation-model" "static" "-mdisable-fp-elim" "-fmath-errno" "-masm-verbose" "-mconstructor-aliases" "-target-cpu" "i586" "-ffunction-sections" "-resource-dir" "/home/abuild/rpmbuild/BUILD/llvm/stage2/./bin/../lib64/clang/3.5" "-internal-isystem" "/usr/local/include" "-internal-isystem" "/home/abuild/rpmbuild/BUILD/llvm/stage2/./bin/../lib64/clang/3.5/include" "-internal-externc-isystem" "/include" "-internal-externc-isystem" "/usr/include" "-fdebug-compilation-dir" "/home/abuild/rpmbuild/BUILD/llvm/stage2/tools/clang/test/Driver" "-ferror-limit" "19" "-fmessage-length" "0" "-mstackrealign" "-fobjc-runtime=gcc" "-fdiagnostics-show-option" "-vectorize-slp" "-x" "c" "/home/abuild/rpmbuild/BUILD/llvm/tools/clang/test/Driver/function-sections.c"</div>

<div>[ 5625s]                                                                                                                                                                                                                                                                                                     ^</div>

<div>[ 5625s] /home/abuild/rpmbuild/BUILD/llvm/tools/clang/test/Driver/function-sections.c:4:20: note: CHECK-NOFS-NOT: pattern specified here</div><div>[ 5625s] // CHECK-NOFS-NOT: -ffunction-sections</div><div>[ 5625s]                    ^</div>

</div><div><br></div><div>Compiler is the clang trunk (built in stage1). Using cmake to build.</div><div><br></div><div>Any ideas?</div><div><br></div></div>