errorr: ‘class llvm::TargetOptions’ has no member named ‘EnableSegmentedStacks’

Hi

Compiling LLVM and CLang from the main trunk produces this error:

/cygdrive/z/dev/llvm/x64/llvm/tools/clang/lib/CodeGen/BackendUtil.cpp: In member function ‘llvm::TargetMachine* {anonymous}::EmitAssemblyHelper::CreateTargetMachine(bool)’:
/cygdrive/z/dev/llvm/x64/llvm/tools/clang/lib/CodeGen/BackendUtil.cpp:491:11: erreur: ‘class llvm::TargetOptions’ has no member named ‘EnableSegmentedStacks’
    Options.EnableSegmentedStacks = CodeGenOpts.EnableSegmentedStacks;
            ^
llvm[4]: Compiling CommentBriefParser.cpp for Release+Asserts build

A missing commit maybe?

zos

$ svn info
Path: .
Working Copy Root Path: /cygdrive/z/dev/llvm/x64/llvm
URL: http://llvm.org/svn/llvm-project/llvm/trunk
Relative URL: ^/llvm/trunk
Repository Root: http://llvm.org/svn/llvm-project
Repository UUID: 91177308-0d34-0410-b5e6-96231b3b80d8
Revision: 206105
Node Kind: directory
Schedule: normal
Last Changed Author: dblaikie
Last Changed Rev: 206105
Last Changed Date: 2014-04-12 07:35:59 +0200 (Sat, 12 Apr 2014)

From: "zosrothko" <zosrothko@orange.fr>
To: llvmdev@cs.uiuc.edu
Sent: Saturday, April 12, 2014 6:10:06 AM
Subject: [LLVMdev] errorr: ‘class llvm::TargetOptions’ has no member named ‘EnableSegmentedStacks’

Hi

Compiling LLVM and CLang from the main trunk produces this error:

/cygdrive/z/dev/llvm/x64/llvm/tools/clang/lib/CodeGen/BackendUtil.cpp:
In member function ‘llvm::TargetMachine*
{anonymous}::EmitAssemblyHelper::CreateTargetMachine(bool)’:
/cygdrive/z/dev/llvm/x64/llvm/tools/clang/lib/CodeGen/BackendUtil.cpp:491:11:
erreur: ‘class llvm::TargetOptions’ has no member named
‘EnableSegmentedStacks’
    Options.EnableSegmentedStacks =
    CodeGenOpts.EnableSegmentedStacks;
            ^
llvm[4]: Compiling CommentBriefParser.cpp for Release+Asserts build

A missing commit maybe?

It looks like your clang is out of date. Try (cd tools/clang && svn update)

-Hal