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: [fortran PATCH] Implement a(:,:) = 0.0 using memset (take 2)


Let me add a dull remark without having read the actual patch or
following nor considering the actual proposed changes :(

On Tue, Dec 19, 2006 at 01:38:50PM -0800, Steve Kargl wrote:
>On Mon, Dec 18, 2006 at 06:55:22PM -0700, roger@eyesopen.com wrote:
>> 
>> 2006-12-18  Roger Sayle  <roger@eyesopen.com>
>> 
>>         * trans-expr.c (is_zero_initializer_p): Determine whether a given
>>         constant expression is a zero initializer.
>>         (gfc_trans_zero_assign): New function to attempt top optimize

s/top/to/;

>>         "a(:) = 0.0" as a call to __builtin_memset (a, 0, sizeof(a));
>>         (gfc_trans_assignment): Special case array assignments to zero
>>         initializer constants, using gfc_trans_zero_assign.

s/constants/constant/;# ?
>> 
>>         * gfortran.dg/array_memset_1.f90: New test case.

hindered by time constraints your,


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