This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, midlevel]: Fix PR tree-optimization/21004
- From: Uros Bizjak <uros at kss-loka dot si>
- To: Roger Sayle <roger at eyesopen dot com>
- Cc: jsm28 at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Fri, 15 Apr 2005 07:47:39 +0200
- Subject: Re: [PATCH, midlevel]: Fix PR tree-optimization/21004
- References: <Pine.LNX.4.44.0504140925030.17723-100000@www.eyesopen.com>
Roger Sayle wrote:
I'll preapprove your patch together with the above two refinements
if it passes bootstrap and regression testing without problems.
I have comitted this patch to mainline, after adding all changes you
requested:
http://gcc.gnu.org/ml/gcc-cvs/2005-04/msg00794.html
2005-04-15 Uros Bizjak <uros@kss-loka.si>
PR tree-optimization/21004
* convert.c (convert_to_integer): Convert ceilf, ceill, floorf
and floorl in c99 mode only.
* builtins.c (expand_builtin_int_roundingfn): Assert that
fallback_fndecl is not NULL_TREE.
testsuite:
PR tree-optimization/21004
* gcc.dg/builtins-53.c: Include builtins-config.h.
Check floorf, ceilf, floorl and ceill transformations
only when HAVE_C99_RUNTIME is defined.
Patch was bootstrapped on i686-pc-linux-gnu, regtested on
i686-pc-linux-gnu for c, c++ also regtested on sparc-sun-solaris2.8 for c.
Thank you for your reviews and suggestions!
Uros.