From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21518 invoked by alias); 30 May 2007 12:14:04 -0000 Received: (qmail 21491 invoked by uid 48); 30 May 2007 12:13:52 -0000 Date: Wed, 30 May 2007 12:14:00 -0000 From: "masami dot hiramatsu dot pt at hitachi dot com" To: systemtap@sources.redhat.com Message-ID: <20070530121352.4567.masami.hiramatsu.pt@hitachi.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug translator/4567] New: optimizer changes results by removing complex statement X-Bugzilla-Reason: AssignedTo Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org X-SW-Source: 2007-q2/txt/msg00422.txt.bz2 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.