[Bug fortran/40598] Some missed optimizations in array assignment

pault at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Jun 30 09:55:00 GMT 2009



------- Comment #3 from pault at gcc dot gnu dot org  2009-06-30 09:54 -------
(In reply to comment #1)
> I guess for zeroing you want memset, not memcpy.  Note that in most of the

***blush*** - yes, you are right, of course!

> cases you should be able to use direct assignments from {} (to zero) or
> the source.  For selecting continuous ranges of an array you can use
> ARRAY_RANGE_REF.
>

I was going to enquire if such a facility exists.

Thanks

Paul


-- 


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



More information about the Gcc-bugs mailing list