This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/11366] @defined() and unoptimized stap -u don't work nicely together
- From: "mjw at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 10 Mar 2010 14:56:46 -0000
- Subject: [Bug translator/11366] @defined() and unoptimized stap -u don't work nicely together
- References: <20100310135909.11366.mjw@redhat.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From mjw at redhat dot com 2010-03-10 14:56 -------
Testing patch:
diff --git a/elaborate.cxx b/elaborate.cxx
index 07a2ed6..11d6142 100644
--- a/elaborate.cxx
+++ b/elaborate.cxx
@@ -3674,8 +3674,9 @@ semantic_pass_optimize1 (systemtap_session& s)
// For listing mode, we need const-folding regardless of optimization so
// that @defined expressions can be properly resolved. PR11360
- if (!s.unoptimized || s.listing_mode_vars)
- semantic_pass_const_fold (s, relaxed_p);
+ // We also want it in case variables are used in if/case expressions,
+ // so enable always. PR11366
+ semantic_pass_const_fold (s, relaxed_p);
iterations ++;
}
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|systemtap at sources dot |mjw at redhat dot com
|redhat dot com |
Status|NEW |ASSIGNED
http://sourceware.org/bugzilla/show_bug.cgi?id=11366
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.