From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31630 invoked by alias); 5 Feb 2014 13:37:08 -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 31609 invoked by uid 48); 5 Feb 2014 13:37:04 -0000 From: "gjl at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/60075] Wrong code from loop optimizer with address-space accesses Date: Wed, 05 Feb 2014 13:37:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 4.7.3 X-Bugzilla-Keywords: addr-space, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: gjl at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords cf_gcctarget bug_status cf_reconfirmed_on everconfirmed 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-02/txt/msg00404.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60075 Georg-Johann Lay changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |addr-space, wrong-code Target| |avr Status|UNCONFIRMED |NEW Last reconfirmed| |2014-02-05 Ever confirmed|0 |1 --- Comment #1 from Georg-Johann Lay --- The code is correct of -fno-ivopts or -fno-tree-loop-optimize is added to the command options. Presumably, the problem is that the __memx address space uses a 24-bit mode (PSImode) but sizetype is only 16 bits.