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/2600] should optimize away assignments in other contexts


------- Additional Comments From scox at redhat dot com  2008-05-14 12:35 -------
Here are some partial results:
Given: global values, idx, nridx
probe begin {
  nridx = 0
  values[idx=1] = 10
  values[idx=2] = 20
  values[nidx=3] = 30
  printf ("optarridx.stp %d %d %d\n", values[1], values[2], nidx)
  exit ()
}

begin /* <- begin */
  # locals
  nidx:long
{
(values[1]) = (10)
(values[2]) = (20)
(values[(nidx) = (3)]) = (30)
printf("optarridx.stp %d %d %d\\n", values[1], values[2], nidx)
exit()
}


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


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

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


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