This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug translator/18079] autocast doesn't work with @defined


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]