public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug translator/4567] New: optimizer changes results by removing complex statement
@ 2007-05-30 12:14 masami dot hiramatsu dot pt at hitachi dot com
  2007-05-30 13:00 ` [Bug translator/4567] " fche at redhat dot com
  0 siblings, 1 reply; 2+ messages in thread
From: masami dot hiramatsu dot pt at hitachi dot com @ 2007-05-30 12:14 UTC (permalink / raw)
  To: systemtap

I found the optimizer can change the results and
behaviors.

For example,
----
     1  global array
     2
     3  function func(i) {
     4          array[i++] = 0;
     5          return i;
     6  }
     7
     8  probe begin {
     9          printf("%d\n", func(0));
    10          exit();
    11  }
----
This script's output is expected as 1.
However I ran it without -u option, I got 0.
So, I ran it again with -u option. Then I got 1.
I tested it by using systemtap-20070519.

I think the optimizer should treat these complex
statement as a series of single statements.


Thanks,

-- 
           Summary: optimizer changes results by removing complex statement
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: translator
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: masami dot hiramatsu dot pt at hitachi dot com
                CC: soshima at redhat dot com


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

------- 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/4567] optimizer changes results by removing complex statement
  2007-05-30 12:14 [Bug translator/4567] New: optimizer changes results by removing complex statement masami dot hiramatsu dot pt at hitachi dot com
@ 2007-05-30 13:00 ` fche at redhat dot com
  0 siblings, 0 replies; 2+ messages in thread
From: fche at redhat dot com @ 2007-05-30 13:00 UTC (permalink / raw)
  To: systemtap



-- 
           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=4567

------- 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:[~2007-05-30 13:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-30 12:14 [Bug translator/4567] New: optimizer changes results by removing complex statement masami dot hiramatsu dot pt at hitachi dot com
2007-05-30 13:00 ` [Bug translator/4567] " 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).