[llvm-commits] Patch - small improvements to bugpoint

Chris Lattner clattner at apple.com
Thu May 6 14:55:54 PDT 2010


On May 6, 2010, at 6:02 AM, Kalle Raiskila wrote:

> Hi,
> 
> attached is a patch with two small improvements for bugpoint that I have been using a while now.
> 
> 1) introduce the --gcc command line option so the user can specify the safe gcc binary to use (e.g. clang, spu-gcc,...). If no --gcc option is given, it defaults to 'gcc', which is current behaviour.
> 
> 2) the parameters passed in with --gcc-tool-args currently get passed twice to gcc. First when creating the GCC object in bugoint, and then when e.g. the LLC object uses GCC. The patch removes the second route. This would be a cosmetic change, but I frequently am passing hosting C files via the --gcc-tool-args - gcc chokes on a redefinition of the main function.

Looks good to me.  Please commit, or send me (offlist) the info requested in the Developer Policy document if you don't have commit access yet.

-Chris

> 
> Is this patch committable?
> 
> kalle
> 
> 
> 
> <bugpoint-gcc-and-args.patch>_______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits





More information about the llvm-commits mailing list