From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25004 invoked by alias); 8 Dec 2011 20:13:29 -0000 Received: (qmail 24993 invoked by uid 22791); 8 Dec 2011 20:13:27 -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 sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 08 Dec 2011 20:13:14 +0000 From: "fche at redhat dot com" To: systemtap@sourceware.org Subject: [Bug translator/13486] New: pass-4 error (frame_base undeclared), inlined function argument Date: Thu, 08 Dec 2011 20:15:00 -0000 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: fche at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: systemtap at sourceware dot org 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 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: 2011-q4/txt/msg00328.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=3D13486 Bug #: 13486 Summary: pass-4 error (frame_base undeclared), inlined function argument Product: systemtap Version: unspecified Status: NEW Severity: normal Priority: P2 Component: translator AssignedTo: systemtap@sourceware.org ReportedBy: fche@redhat.com Classification: Unclassified Created attachment 6098 --> http://sourceware.org/bugzilla/attachment.cgi?id=3D6098 rmap.o from build tree On a rawhide VM, the following script causes buggy loc2c code generation: % stap -p4 -e 'probe kernel.function("try_to_unmap_cluster") {println($mapcount)}'=20 /var/tmp/stapEaoDzl/stap_18fc171ff2ff11b32cb9f4b595ad29e1_1254.c: In functi= on =E2=80=98function__dwarf_tvar_get_mapcount_0=E2=80=99: /var/tmp/stapEaoDzl/stap_18fc171ff2ff11b32cb9f4b595ad29e1_1254.c:175:16: er= ror: =E2=80=98frame_base=E2=80=99 undeclared (first use in this function) /var/tmp/stapEaoDzl/stap_18fc171ff2ff11b32cb9f4b595ad29e1_1254.c:175:16: no= te: each undeclared identifier is reported only once for each function it appea= rs in make[1]: *** [/var/tmp/stapEaoDzl/stap_18fc171ff2ff11b32cb9f4b595ad29e1_125= 4.o] Error 1 make: *** [_module_/var/tmp/stapEaoDzl] Error 2 % dmesg|head [ 0.000000] Linux version 3.2.0-rc4-next-20111205 (fche@vm-rawhide-64) (= gcc version 4.6.2 20111027 (Red Hat 4.6.2-1) (GCC) ) #1 SMP Mon Dec 5 05:30:40 = EST 2011 % readelf -w /notnfs/linux-2.6/mm/rmap.o [...] DW_AT_name : (indirect string, offset: 0x1220): try_to_unmap_cluster DW_AT_decl_file : 1=20=20=20=20=20=20 DW_AT_decl_line : 1315=20=20=20 DW_AT_prototyped : 1=20=20=20=20=20=20 DW_AT_type : <0x7c>=20 DW_AT_inline : 1 (inlined) DW_AT_sibling : <0xe796>=20=20=20=20=20=20=20 <2>: Abbrev Number: 71 (DW_TAG_formal_parameter) DW_AT_name : (indirect string, offset: 0x30e9): cursor= =20=20=20=20=20=20 DW_AT_decl_file : 1=20=20=20=20=20=20 DW_AT_decl_line : 1315=20=20=20 DW_AT_type : <0x11a>=20=20=20=20=20=20=20=20 <2>: Abbrev Number: 71 (DW_TAG_formal_parameter) DW_AT_name : (indirect string, offset: 0x3fa5): mapcoun= t=20=20=20=20 DW_AT_decl_file : 1=20=20=20=20=20=20 DW_AT_decl_line : 1315=20=20=20 DW_AT_type : <0xf1b>=20=20=20=20=20=20=20=20 <2>: Abbrev Number: 64 (DW_TAG_formal_parameter) DW_AT_name : vma=20=20=20=20 DW_AT_decl_file : 1=20=20=20=20=20=20 DW_AT_decl_line : 1316=20=20=20 DW_AT_type : <0x4d83>=20=20=20=20=20=20=20 I don't see a location list for this "mapcount" variable, but that must jus= t be=20 my lyin' eyes. --=20 Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=3Demail ------- You are receiving this mail because: ------- You are the assignee for the bug.