On Jul 10, 2013, at 11:18 AM, Eli Bendersky <[email protected]> wrote:
> On Wed, Jul 10, 2013 at 3:03 AM, John McCall <[email protected]> wrote:
> On Jun 27, 2013, at 3:57 PM, Eli Bendersky <[email protected]> wrote:
> > Without fmath-errno, Clang currently generates calls to @llvm.pow.* 
> > intrinsics when it sees pow*(). This may not be suitable for all targets 
> > (for example PNaCl), so the attached patch adds a target hook that CodeGen 
> > queries. The target can state its preference for having or not having the 
> > intrinsic generated. Non-PNaCl behavior remains unchanged; PNaCl-specific 
> > test added.
> 
> Isn't a more straightforward and less invasive approach to just invoke the 
> compiler with -fno-builtin=pow or something along those lines?
> 
> We don't control the flags users supply to Clang though. 

Then handle it in the driver.

John.
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to