This is the mail archive of the gcc-bugs@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]

[Bug middle-end/29335] transcendental functions with constant arguments should be resolved at compile-time



------- Comment #14 from ghazi at gcc dot gnu dot org  2006-10-24 17:44 -------
Subject: Bug 29335

Author: ghazi
Date: Tue Oct 24 17:44:36 2006
New Revision: 118009

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=118009
Log:
        PR middle-end/29335
        * builtins.c (fold_builtin_sin, fold_builtin_atan): Remove.
        (do_mpfr_arg1): Add `min', `max' and `inclusive' arguments.
        Update all callers.
        (BUILT_IN_SIN, BUILT_IN_ATAN): Handle in main switch.
        (BUILT_IN_ASIN, BUILT_IN_ACOS, BUILT_IN_ATAN, BUILT_IN_ASINH,
        BUILT_IN_ACOSH, BUILT_IN_ATANH, BUILT_IN_SINH, BUILT_IN_COSH,
        BUILT_IN_TANH): Calculate compile-time arguments using MPFR.

testsuite:
        * gcc.dg/torture/builtin-math-3.c: New test.



Added:
    trunk/gcc/testsuite/gcc.dg/torture/builtin-math-3.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/builtins.c
    trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29335


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