From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25281 invoked by alias); 20 Oct 2010 02:35:40 -0000 Received: (qmail 25183 invoked by uid 22791); 20 Oct 2010 02:35:39 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 20 Oct 2010 02:35:35 +0000 From: "jistone at redhat dot com" To: systemtap@sources.redhat.com Subject: [Bug translator/12139] New: SDT V3 fails with structs that are only declared X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: translator X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jistone at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: systemtap at sources dot redhat.com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Date: Wed, 20 Oct 2010 02:35:00 -0000 Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org X-SW-Source: 2010-q4/txt/msg00061.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=3D12139 Summary: SDT V3 fails with structs that are only declared Product: systemtap Version: unspecified Status: NEW Severity: normal Priority: P2 Component: translator AssignedTo: systemtap@sources.redhat.com ReportedBy: jistone@redhat.com Using gcc version 4.4.4 20100630 (Red Hat 4.4.4-10) (GCC) $ cat declared-struct.c #include struct foo; int main() { struct foo* p =3D 0; STAP_PROBE1(test, foo, p); return 0; } $ gcc -c declared-struct.c=20 declared-struct.c: In function =E2=80=98main=E2=80=99: declared-struct.c:6: error: invalid use of undefined type =E2=80=98struct f= oo=E2=80=99 declared-struct.c:6: error: invalid use of undefined type =E2=80=98struct f= oo=E2=80=99 declared-struct.c:6: error: invalid use of undefined type =E2=80=98struct f= oo=E2=80=99 declared-struct.c:6: error: invalid use of undefined type =E2=80=98struct f= oo=E2=80=99 I think it's complaining about the "+ 0" math on the argument. If I cast "= p" to a void*, it compiles fine. --=20 Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=3Demail ------- You are receiving this mail because: ------- You are the assignee for the bug.