From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32343 invoked by alias); 8 Oct 2014 10:49:02 -0000 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 Received: (qmail 32297 invoked by uid 48); 8 Oct 2014 10:48:59 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/63483] Scheduler performs Invalid move of aliased memory reference Date: Wed, 08 Oct 2014 10:49:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ubizjak at gmail dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_gcctarget component Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-10/txt/msg00565.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63483 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Target| |alpha Component|rtl-optimization |target --- Comment #5 from Richard Biener --- The bug is clearly in " > Btw, if the mem is MEM_READONLY_P how can it be part of > a {un}aligned_store sequence? This flag is copied from the original memory operand of the store by alpha_set_memflags to all memory operands in the expanded sequence." and thus should be fixed there. What is the "original" memory reference here? It seems for the read-modify-write you should use the target MEM but somehow a source MEM gets used? Or rather you should not use either MEMs flags for _all_ MEMs in the sequence but properly distinguish between MEMs generated for the load of the source and MEMs generated for the store to the destination.