public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/41992]  New: ICE on invalid dereferencing of void *
@ 2009-11-09  2:55 mikulas at artax dot karlin dot mff dot cuni dot cz
  2009-11-09 10:17 ` [Bug middle-end/41992] " rguenth at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: mikulas at artax dot karlin dot mff dot cuni dot cz @ 2009-11-09  2:55 UTC (permalink / raw)
  To: gcc-bugs

Hi

This piece of invalid code (the dereference shouldn't be there) triggers an
ICE. The crash happens on 4.3.2, 4.4.1 and 4.4.2. It happens with or without
optimizations.

static void MONITOR(void *ptr)
{
__asm__ volatile ("                                     \n\
XORL    %%ECX, %%ECX                                    \n\
XORL    %%EDX, %%EDX                                    \n\
MONITOR                                                 \n\
"::"a"(*ptr):"cx","dx","cc","memory");
}

s.e: In function 'MONITOR':
s.e:7: warning: dereferencing 'void *' pointer
s.e:7: internal compiler error: in gimplify_expr, at gimplify.c:7074
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


-- 
           Summary: ICE on invalid dereferencing of void *
           Product: gcc
           Version: 4.4.1
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mikulas at artax dot karlin dot mff dot cuni dot cz
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41992


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

end of thread, other threads:[~2009-11-11 21:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-09  2:55 [Bug middle-end/41992] New: ICE on invalid dereferencing of void * mikulas at artax dot karlin dot mff dot cuni dot cz
2009-11-09 10:17 ` [Bug middle-end/41992] " rguenth at gcc dot gnu dot org
2009-11-09 13:17 ` joseph at codesourcery dot com
2009-11-11 21:06 ` mikulas at artax dot karlin dot mff dot cuni dot cz

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).