From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4459 invoked by alias); 11 Apr 2011 12:14:59 -0000 Received: (qmail 4444 invoked by uid 22791); 11 Apr 2011 12:14:56 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 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; Mon, 11 Apr 2011 12:14:52 +0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/48552] New: ICE with void type expressions in asm inputs/outputs X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jakub 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 Date: Mon, 11 Apr 2011 12:14: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-04/txt/msg01083.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48552 Summary: ICE with void type expressions in asm inputs/outputs Product: gcc Version: 4.6.0 URL: https://bugzilla.redhat.com/show_bug.cgi?id=693986 Status: UNCONFIRMED Keywords: ice-on-invalid-code Severity: normal Priority: P3 Component: c AssignedTo: jakub@gcc.gnu.org ReportedBy: jakub@gcc.gnu.org struct S; void f1 (void *x) { __asm volatile ("" : : "r" (*x)); } void f2 (void *x) { __asm volatile ("" : "=r" (*x)); } void f3 (void *x) { __asm volatile ("" : : "m" (*x)); } void f4 (void *x) { __asm volatile ("" : "=m" (*x)); } void f5 (void *x) { __asm volatile ("" : : "g" (*x)); } void f6 (void *x) { __asm volatile ("" : "=g" (*x)); } void f7 (struct S *x) { __asm volatile ("" : : "r" (*x)); } void f8 (struct S *x) { __asm volatile ("" : "=r" (*x)); } void f9 (void *x) { __asm ("" : : "r" (*x)); } void f10 (void *x) { __asm ("" : "=r" (*x)); } void f11 (void *x) { __asm ("" : : "m" (*x)); } void f12 (void *x) { __asm ("" : "=m" (*x)); } void f13 (void *x) { __asm ("" : : "g" (*x)); } void f14 (void *x) { __asm ("" : "=g" (*x)); } void f15 (struct S *x) { __asm ("" : : "r" (*x)); } void f16 (struct S *x) { __asm ("" : "=r" (*x)); } ICEs back to 3.2-ish gcc at least, correctly errors out with C++.