Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Unified Diff: runtime/vm/flow_graph_inliner.cc

Issue 749193002: Work around erroneous GCC report about potentially clobbered variable. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: comment Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_inliner.cc
diff --git a/runtime/vm/flow_graph_inliner.cc b/runtime/vm/flow_graph_inliner.cc
index 601c72dcbfb36e89fb0acf0d2bacd5b71f405527..1734ee1e62de6c04685f098f9d0c34fee976844f 100644
--- a/runtime/vm/flow_graph_inliner.cc
+++ b/runtime/vm/flow_graph_inliner.cc
@@ -648,7 +648,8 @@ class CallSiteInliner : public ValueObject {
// Abort if this is a recursive occurrence.
Definition* call = call_data->call;
- const bool is_recursive_call = IsCallRecursive(unoptimized_code, call);
+ // Added 'volatile' works around a possible GCC 4.9 compiler bug.
+ volatile bool is_recursive_call = IsCallRecursive(unoptimized_code, call);
if (is_recursive_call &&
inlining_recursion_depth_ >= FLAG_inlining_recursion_depth_threshold) {
TRACE_INLINING(OS::Print(" Bailout: recursive function\n"));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698