From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 36839 invoked by alias); 27 May 2016 14:25:31 -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 Received: (qmail 36745 invoked by uid 48); 27 May 2016 14:25:18 -0000 From: "dsmith at redhat dot com" To: systemtap@sourceware.org Subject: [Bug translator/18079] autocast doesn't work with @defined Date: Fri, 27 May 2016 14:25:00 -0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: translator X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dsmith at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: systemtap at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2016-q2/txt/msg00162.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=3D18079 David Smith changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dsmith at redhat dot com --- Comment #2 from David Smith --- Created attachment 9288 --> https://sourceware.org/bugzilla/attachment.cgi?id=3D9288&action=3Dedit workaround patch Here's a patch that attempts to workaround this bug. It adds an error messa= ge when autocast operators are used with @define. Using this error message, I = used the buildok test to check for errors in the tapset. The only problems I fou= nd were in tapset/linux/nfs_proc.stp. Fixes for that tapset are included in the patch. With this patch, I then ran the entire testsuite. The only other time the n= ew error message was printed was in semok/autocast14.stp. Here's what the error message looks like in use: =3D=3D=3D=3D semantic error: autocast operators don't work with @defined: operator '@defined' at /root/src/testsuite/semok/autocast14.stp:14:10 source: if (!@defined(task_current()->mm)) { ^ Pass 2: analysis failed. [man error::pass2]^M =3D=3D=3D=3D Should this be an error or warning? --=20 You are receiving this mail because: You are the assignee for the bug.