Re: question on inconsistent generated codes for builtin calls

2012-01-16 Thread Richard Guenther
On Mon, Jan 16, 2012 at 7:24 AM, Amker.Cheng wrote: > On Fri, Jan 13, 2012 at 10:17 PM, Amker.Cheng wrote: >> On Fri, Jan 13, 2012 at 5:33 PM, Richard Guenther >> wrote: >>> >>> No, I think the check is superfluous and should be removed.  I also wonder >>> why we exempt BUILT_IN_FREE here ... ca

Re: question on inconsistent generated codes for builtin calls

2012-01-15 Thread Amker.Cheng
On Fri, Jan 13, 2012 at 10:17 PM, Amker.Cheng wrote: > On Fri, Jan 13, 2012 at 5:33 PM, Richard Guenther > wrote: >> >> No, I think the check is superfluous and should be removed.  I also wonder >> why we exempt BUILT_IN_FREE here ... can you dig in SVN history a bit? >> For both things? Hi Rich

Re: question on inconsistent generated codes for builtin calls

2012-01-13 Thread Amker.Cheng
On Fri, Jan 13, 2012 at 5:33 PM, Richard Guenther wrote: > > No, I think the check is superfluous and should be removed.  I also wonder > why we exempt BUILT_IN_FREE here ... can you dig in SVN history a bit? > For both things? Thanks for clarifying. I will look into it. -- Best Regards.

Re: question on inconsistent generated codes for builtin calls

2012-01-13 Thread Richard Guenther
On Fri, Jan 13, 2012 at 9:04 AM, Amker.Cheng wrote: > Hi, > I noticed gcc generates inconsistent codes for same function for builtin > calls. > > compile following program: > -- > #include > int a(float x) { >      return sqrtf(x); > } > int b(float x)