[LLVMdev] How can i turn off the optimization of llvm-gcc

John Criswell criswell at cs.uiuc.edu
Tue Apr 11 08:30:15 PDT 2006


Nai XIA wrote:
> Hello everyone, how can I  turn off the optimization of llvm-gcc,
> just like the "-O0" do to gcc ?

You can use llvm-gcc -Wa,-disable-opt -Wl,-disable-opt to disable the 
optimizations done by gccas and gccld, respectively.

-- John T.

-- 
John T. Criswell
Research Programmer
University of Illinois at Urbana-Champaign
"It's today!" said Piglet. "My favorite day," said Pooh.




More information about the llvm-dev mailing list