This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/40598] Some missed optimizations in array assignment
- From: "pault at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Jun 2009 09:54:55 -0000
- Subject: [Bug fortran/40598] Some missed optimizations in array assignment
- References: <bug-40598-10374@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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