[LLVMdev] Transition C->bitcode->assembly->object looses frame pointers

Alexander Potapenko ramosian.glider at gmail.com
Tue Apr 5 05:49:50 PDT 2011

Hi James,

We've indeed passed the appropriate (and even excessive) flags to the
appropriate pipeline parts, that is:

 llvm-gcc -O1 -fno-omit-frame-pointers -g $in -emit-llvm -S -o $name.ll
 llc --disable-fp-elim $name.ll -o $name.S
 g++ -fno-omit-frame-pointers -c $name.S

, but that didn't work


On Tue, Apr 5, 2011 at 4:40 PM, James Molloy <James.Molloy at arm.com> wrote:
> Hi,
> The -disable-fp-elim flag must be passed to the part of the compilation process that actually performs that optimisation pass - when you run clang/llvm-gcc in one invocation, obviously it will just be that invocation, but in your first case it would be the llc command. That is where the IR gets lowered, so is where the FP elimination takes place.
> Pass flags are not, as far as I'm aware, propagated in generated bitcode files - the same flags need to be given to each part of the pipeline.
> Hope this helps,
> James

More information about the llvm-dev mailing list