This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/4567] New: optimizer changes results by removing complex statement
- From: "masami dot hiramatsu dot pt at hitachi dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 30 May 2007 12:13:52 -0000
- Subject: [Bug translator/4567] New: optimizer changes results by removing complex statement
- Reply-to: sourceware-bugzilla at sourceware dot org
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.