From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9525 invoked by alias); 11 Feb 2009 13:38:47 -0000 Received: (qmail 9465 invoked by uid 48); 11 Feb 2009 13:38:31 -0000 Date: Wed, 11 Feb 2009 13:38:00 -0000 Message-ID: <20090211133831.9464.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug middle-end/22448] ICE on dereferencing a label in an asm statement In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "trick at icculus dot org" 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: 2009-02/txt/msg00965.txt.bz2 ------- Comment #4 from trick at icculus dot org 2009-02-11 13:38 ------- This also happens when dereferencing void pointers (this is invalid code though, but I get the same error with the code in the first post): void foo (void *p) { asm("" :: "g" (*p)); } $ gcc -c foo.c foo.c: In function ‘foo’: foo.c:3: warning: dereferencing ‘void *’ pointer foo.c:3: internal compiler error: in gimplify_expr, at gimplify.c:6288 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. $ gcc -v Using built-in specs. Target: x86_64-unknown-linux-gnu Configured with: ../configure --prefix=/usr --enable-shared --enable-languages=c,c++,fortran,objc,obj-c++,treelang --enable-threads=posix --mandir=/usr/share/man --infodir=/usr/share/info --enable-__cxa_atexit --disable-multilib --libdir=/usr/lib --libexecdir=/usr/lib --enable-clocale=gnu --disable-libstdcxx-pch --with-tune=generic Thread model: posix gcc version 4.3.3 (GCC) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22448