From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15341 invoked by alias); 30 Jun 2009 09:55:06 -0000 Received: (qmail 15215 invoked by uid 48); 30 Jun 2009 09:54:55 -0000 Date: Tue, 30 Jun 2009 09:55:00 -0000 Message-ID: <20090630095455.15214.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/40598] Some missed optimizations in array assignment In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pault at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-06/txt/msg02181.txt.bz2 ------- 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