From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26823 invoked by alias); 24 Feb 2011 13:59:34 -0000 Received: (qmail 26810 invoked by uid 22791); 24 Feb 2011 13:59:32 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_GJ,TW_WR X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 24 Feb 2011 13:59:28 +0000 From: "avr at gjlay dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/46779] wrong code generation for array access X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Keywords: X-Bugzilla-Severity: critical X-Bugzilla-Who: avr at gjlay dot de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Thu, 24 Feb 2011 14:04:00 -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 X-SW-Source: 2011-02/txt/msg02764.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46779 --- Comment #7 from Georg-Johann Lay 2011-02-24 13:58:58 UTC --- Created attachment 23453 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23453 Simpler example without #include Slightly simpler test case, compile with avr-gcc -S -Os -mmcu=atmega128 pr46779-1.c Pass .subreg1 emits subregs as Lvalues with the same pseudo as SUBREG_REG so that the second insn ovewrwrites the first. Target: avr Configured with: /gnu/source/gcc.gnu.org/branches/gcc-4_4-branch/configure --target=avr --prefix=/home/georg/gcc/install/gcc-4.4 --enable-languages=c,c++ --disable-libssp --disable-libada --disable-nls --disable-shared Thread model: single gcc version 4.4.6 20110222 (prerelease) (GCC) [...] GNU C (GCC) version 4.4.6 20110222 (prerelease) (avr) compiled by GNU C version 4.3.2 [gcc-4_3-branch revision 141291], GMP version 4.3.1, MPFR version 2.4.2.