function-sections test fails on Linux/x86-64

Looks like recent -ffunction-sections patches broke the following test:

[ 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
[ 5625s] –
[ 5625s] Exit Code: 1
[ 5625s]
[ 5625s] Command Output (stderr):
[ 5625s] –
[ 5625s] :5:293: error: CHECK-NOFS-NOT: string occurred!
[ 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”
[ 5625s] ^
[ 5625s] /home/abuild/rpmbuild/BUILD/llvm/tools/clang/test/Driver/function-sections.c:4:20: note: CHECK-NOFS-NOT: pattern specified here
[ 5625s] // CHECK-NOFS-NOT: -ffunction-sections
[ 5625s] ^

Compiler is the clang trunk (built in stage1). Using cmake to build.

Any ideas?