[PATCH, midlevel]: Fix PR tree-optimization/21004

Uros Bizjak uros@kss-loka.si
Fri Apr 15 05:49:00 GMT 2005


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.



More information about the Gcc-patches mailing list