This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Also fold (float)log(x) as logf(x)


Roger Sayle <roger@www.eyesopen.com> writes:

> This trivial patch adds "log" to the list of built-in math functions
> that GCC folds to a narrower type.  These were omitted by accident
> in Jan's original patch.  This change is slightly more than a two
> lines as it also updates the copyright years, and reorders this
> condition to check for optimize first.
> 
> The following patch has been tested on i686-pc-linux-gnu with a full
> bootstrap, all languages except Ada and treelang, and a complete
> "make -k check" with no new regressions.
> 
> Ok for mainline?

This is OK.

> 
> 2003-02-18  Roger Sayle  <roger@eyesopen.com>
> 
> 	* convert.c (convert_to_real): Also optimize (float)log(x) into
> 	logf(x) where x is a float, i.e. also handle BUILT_IN_LOG{,L}.
-- 
- Geoffrey Keating <geoffk@geoffk.org>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]