This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/18079] autocast doesn't work with @defined
- From: "dsmith at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sourceware dot org
- Date: Fri, 27 May 2016 14:25:17 +0000
- Subject: [Bug translator/18079] autocast doesn't work with @defined
- Auto-submitted: auto-generated
- References: <bug-18079-6586 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=18079
David Smith <dsmith at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dsmith at redhat dot com
--- Comment #2 from David Smith <dsmith at redhat dot com> ---
Created attachment 9288
--> https://sourceware.org/bugzilla/attachment.cgi?id=9288&action=edit
workaround patch
Here's a patch that attempts to workaround this bug. It adds an error message
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 found
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 new
error message was printed was in semok/autocast14.stp.
Here's what the error message looks like in use:
====
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
====
Should this be an error or warning?
--
You are receiving this mail because:
You are the assignee for the bug.