This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Simplify case labels for mathematical builtins
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Roger Sayle <roger at eyesopen dot com>
- Cc: Volker Reichelt <reichelt at igpm dot rwth-aachen dot de>, gcc-patches at gcc dot gnu dot org
- Date: Sun, 04 Dec 2005 17:27:22 -0800
- Subject: Re: [patch] Simplify case labels for mathematical builtins
- References: <Pine.LNX.4.44.0511300841320.5201-100000@www.eyesopen.com>
Roger Sayle wrote:
> On Wed, 30 Nov 2005, Volker Reichelt wrote:
>
>>2005-11-30 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
>>
>> * builtins.def (CASE_FLT_FN, CASE_INT_FN): New macros.
>> * builtins.c (expand_builtin_mathfn): Use them.
>> (expand_builtin_mathfn_2): Likewise.
>> (expand_builtin_mathfn_3): Likewise.
>> (expand_builtin_int_roundingfn): Likewise.
>> (expand_builtin): Likewise.
>> (integer_valued_real_p): Likewise.
>> (fold_builtin_int_roundingfn): Likewise.
>> (fold_builtin_bitop): Likewise.
>> (fold_builtin_logarithm): Likewise.
>> (fold_builtin_1): Likewise.
>> * convert.c (convert_to_integer): Likewise.
>> * fold-const.c (negate_mathfn_p): Likewise.
>> (tree_expr_nonnegative_p): Likewise.
>
>
> This is OK for mainline, provided that you move the definitions of
> CASE_FLT_FN and CASE_INT_FN.
For clarity, I didn't mean to overrule Roger in my approval; I just
didn't see Roger's message before sending mine.
Thanks,
--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
(916) 791-8304