public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug translator/14524] New: pragma for pre-1.8 embedded-c mangling scheme
@ 2012-08-27 12:27 fche at redhat dot com
  2012-08-28 14:17 ` [Bug translator/14524] " smakarov at redhat dot com
  0 siblings, 1 reply; 2+ messages in thread
From: fche at redhat dot com @ 2012-08-27 12:27 UTC (permalink / raw)
  To: systemtap

http://sourceware.org/bugzilla/show_bug.cgi?id=14524

             Bug #: 14524
           Summary: pragma for pre-1.8 embedded-c mangling scheme
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: translator
        AssignedTo: systemtap@sourceware.org
        ReportedBy: fche@redhat.com
    Classification: Unclassified


As a migration aid for embedded-c functions that need to work both with pre-1.8
systemtap and >=, it would be desirable to support a pragma comment that allows
the THIS->foo THIS->__retvalue widgets to resolve, only for that embedded-c
function.

https://bugzilla.redhat.com/show_bug.cgi?id=851940

e.g. let these two functions coexist:

function foo:long (bar:long) %{ /* unmangled */
   THIS->__retvalue = THIS->bar;
%}
function zoo:long (bar:long) %{
   STAP_RETVALUE = STAP_ARG_bar;
%}

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug translator/14524] pragma for pre-1.8 embedded-c mangling scheme
  2012-08-27 12:27 [Bug translator/14524] New: pragma for pre-1.8 embedded-c mangling scheme fche at redhat dot com
@ 2012-08-28 14:17 ` smakarov at redhat dot com
  0 siblings, 0 replies; 2+ messages in thread
From: smakarov at redhat dot com @ 2012-08-28 14:17 UTC (permalink / raw)
  To: systemtap

http://sourceware.org/bugzilla/show_bug.cgi?id=14524

Serguei Makarov <smakarov at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |smakarov at redhat dot com
         Resolution|                            |FIXED

--- Comment #1 from Serguei Makarov <smakarov at redhat dot com> 2012-08-28 14:17:30 UTC ---
Added and documented the desired /* unmangled */ pragma. As an (incidental)
bonus, having /* unmangled */ doesn't disable the new access macros, so we can
use both syntaxes in one function:

function foo:long (bar:long) %{ /* unmangled */
   THIS->retvalue = THIS->bar + STAP_ARG_bar;
%}

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-08-28 14:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-27 12:27 [Bug translator/14524] New: pragma for pre-1.8 embedded-c mangling scheme fche at redhat dot com
2012-08-28 14:17 ` [Bug translator/14524] " smakarov at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).