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] Fix PR 19899,bug in scalar evolution code w.r.t. to floating-point types


On  2 Aug, Diego Novillo wrote:
> On Wed, Aug 03, 2005 at 02:40:28AM +0200, Volker Reichelt wrote:
> 
>> @@ -866,8 +867,9 @@ add_to_evolution (unsigned loop_nb, 
>>      }
>>  
>>    if (code == MINUS_EXPR)
>> -    to_add = chrec_fold_multiply (type, to_add, 
>> -				  build_int_cst_type (type, -1));
>> +    to_add = chrec_fold_multiply (type, to_add, TREE_CODE (type) == REAL_TYPE
>                                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 						   SCALAR_FLOAT_TYPE_P (type)
>> +				  ? build_real (type, dconstm1)
>> +				  : build_int_cst_type (type, -1));
>>  
> OK everwhere with that change.

Committed with that change to mainline and 4.0 branch.

Regards,
Volker



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