[Bug translator/4567] New: optimizer changes results by removing complex statement

masami dot hiramatsu dot pt at hitachi dot com sourceware-bugzilla@sourceware.org
Wed May 30 12:14:00 GMT 2007


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.



More information about the Systemtap mailing list