From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14106 invoked by alias); 3 Mar 2012 19:38:14 -0000 Received: (qmail 14097 invoked by uid 22791); 3 Mar 2012 19:38:13 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,SUBJ_OBFU_PUNCT_FEW,SUBJ_OBFU_PUNCT_MANY 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; Sat, 03 Mar 2012 19:37:59 +0000 From: "gjl at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/52472] New: ICE: in convert_debug_memory_address, at cfgexpand.c:2491 Date: Sat, 03 Mar 2012 19:38:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Keywords: addr-space, ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: gjl at gcc dot gnu.org 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: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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: 2012-03/txt/msg00305.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52472 Bug #: 52472 Summary: ICE: in convert_debug_memory_address, at cfgexpand.c:2491 Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Keywords: addr-space, ice-on-invalid-code Severity: normal Priority: P3 Component: middle-end AssignedTo: unassigned@gcc.gnu.org ReportedBy: gjl@gcc.gnu.org CC: eric.weddington@atmel.com Host: mingw32 Target: avr typedef unsigned long uint32_t; typedef unsigned int uint16_t; extern const __memx unsigned int data[320][12]; #define pgm_read_word_far(addr) \ (__extension__({ \ uint32_t __addr32 = (uint32_t)(addr); \ uint16_t __result; \ __asm__("; much code" \ : "=r" (__result) \ : "r" (__addr32)); \ __result; \ })) int ice (void) { return pgm_read_word_far (0x20000 + (unsigned long) &data[0][0]); } == Command Line == >> avr-gcc ice-memx.c -S -Os -g3 -v == ICE == ice-memx.c: In function 'ice': ice-memx.c:18:12: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] ice-memx.c:16:5: internal compiler error: in convert_debug_memory_address, at cfgexpand.c:2491 == Configure == Using built-in specs. Target: avr Configured with: ../gcc-trunk/configure --with-gmp=/usr/local --prefix=/usr/local/avr --target=avr --enable-languages=c,c++ --with-dwarf2 --disable-shared --disable-libada --disable-libssp --disable-nls Thread model: single gcc version 4.7.0 20120217 (experimental) (GCC) GNU C (GCC) version 4.7.0 20120217 (experimental) (avr) compiled by GNU C version 4.6.2, GMP version 5.0.4, MPFR version 3.1.0, MPC version 0.9