public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/52472] New: ICE: in convert_debug_memory_address, at cfgexpand.c:2491
@ 2012-03-03 19:38 gjl at gcc dot gnu.org
  2012-03-03 19:40 ` [Bug middle-end/52472] " gjl at gcc dot gnu.org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: gjl at gcc dot gnu.org @ 2012-03-03 19:38 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2014-06-05 18:35 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-03 19:38 [Bug middle-end/52472] New: ICE: in convert_debug_memory_address, at cfgexpand.c:2491 gjl at gcc dot gnu.org
2012-03-03 19:40 ` [Bug middle-end/52472] " gjl at gcc dot gnu.org
2012-03-03 19:41 ` gjl at gcc dot gnu.org
2012-03-05 10:24 ` rguenth at gcc dot gnu.org
2012-03-05 10:32 ` gjl at gcc dot gnu.org
2012-03-05 14:05 ` gjl at gcc dot gnu.org
2012-03-06 12:35 ` jakub at gcc dot gnu.org
2012-03-07 16:10 ` gjl at gcc dot gnu.org
2012-03-28 15:29 ` gjl at gcc dot gnu.org
2013-04-13 14:33 ` gjl at gcc dot gnu.org
2014-06-05 18:35 ` [Bug debug/52472] " law at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).