public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug translator/9810] New: ia64 REG_IP() cannot be used as a lvalue
@ 2009-02-04  1:08 wcohen at redhat dot com
  2009-02-04  2:17 ` [Bug translator/9810] " fche at redhat dot com
  0 siblings, 1 reply; 2+ messages in thread
From: wcohen at redhat dot com @ 2009-02-04  1:08 UTC (permalink / raw)
  To: systemtap

The ia64 REG_IP() for the ia64 takes a couple register values to synthesize a
value for the instruction pointer in runtime/regs.h:

#define REG_IP(regs)    ((regs)->cr_iip +ia64_psr(regs)->ri)

However, the translator generates code like the following that uses REG_IP as an
lvalue for begin and end probes:


  #ifdef STP_NEED_UNWIND_DATA
  memset (& c->regs_buffer, 0, sizeof (c->regs_buffer));
  REG_IP((& c->regs_buffer)) = (unsigned long)__builtin_return_address (0);
  REG_SP((& c->regs_buffer)) = (unsigned long)& c;
  c->regs = & c->regs_buffer;
  #endif

This causes the following tests to fail on ia64:

systemtap.examples/interrupt/scf
systemtap.examples/io/io_submit
buildok/context_test.stp

The ri (restart instruction) points to which instruction in a bundle to restart
execution at. The ri field is part of the program status register (psr).

-- 
           Summary: ia64 REG_IP() cannot be used as a lvalue
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: translator
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: wcohen at redhat dot com
  GCC host triplet: ia64


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

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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

* [Bug translator/9810] ia64 REG_IP() cannot be used as a lvalue
  2009-02-04  1:08 [Bug translator/9810] New: ia64 REG_IP() cannot be used as a lvalue wcohen at redhat dot com
@ 2009-02-04  2:17 ` fche at redhat dot com
  0 siblings, 0 replies; 2+ messages in thread
From: fche at redhat dot com @ 2009-02-04  2:17 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From fche at redhat dot com  2009-02-03 20:31 -------
I will revert this code, which is being mooted for bug #6961 anyway.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|systemtap at sources dot    |fche at redhat dot com
                   |redhat dot com              |
             Status|NEW                         |ASSIGNED


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

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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

end of thread, other threads:[~2009-02-03 20:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-04  1:08 [Bug translator/9810] New: ia64 REG_IP() cannot be used as a lvalue wcohen at redhat dot com
2009-02-04  2:17 ` [Bug translator/9810] " fche 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).