[LLVMdev] Does DragonEgg support parameters like -fno-builtin in clang?

陳韋任 (Wei-Ren Chen) chenwj at iis.sinica.edu.tw
Tue Apr 9 19:45:27 PDT 2013


On Tue, Apr 09, 2013 at 04:39:14PM -0700, Jeff Jia wrote:
> Hi,
> 
> I have been using clang for quite a while, and I can use `clang -fno-builtin
> hello.c` to prevent the generation of llvm built-in functions, such as
> llvm.memset. Recently, I switched to gcc with DragonEgg, since the program to
> be built is originally designed to be compiled with gcc. I searched on the web,
> but did not find any information about how to set DragonEgg parameters. Could
> anyone please give me some help? Thanks in advance!

  Dragonegg is a GCC plugin, I think you can just pass "-fno-builtin"
[1] to gcc. Doesn't it work?

[1]
http://gcc.gnu.org/onlinedocs/gcc-4.8.0/gcc/Option-Summary.html#Option-Summary

Regards,
chenwj

-- 
Wei-Ren Chen (陳韋任)
Computer Systems Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667
Homepage: http://people.cs.nctu.edu.tw/~chenwj




More information about the llvm-dev mailing list