Index: build/common.gypi |
diff --git a/build/common.gypi b/build/common.gypi |
index 23ea72721deacaf04a837ab34ffd401e8be2e224..fc976959c1b16a226e99e3eefff13f2fb5657bbe 100644 |
--- a/build/common.gypi |
+++ b/build/common.gypi |
@@ -3447,8 +3447,16 @@ |
}], |
['profiling==1', { |
'cflags': [ |
- '-marm', # Probably reduntant, but recommend by "perf" docs. |
- '-mapcs-frame', # Seems required by -fno-omit-frame-pointer. |
+ # Thumb code with frame pointer makes chrome crash |
+ # early. |
+ '-marm', |
+ '-mapcs-frame', # Required by -fno-omit-frame-pointer. |
+ # The perf report sometimes incorrectly attributes |
+ # code from tail calls. |
+ '-fno-optimize-sibling-calls', |
+ ], |
+ 'cflags!': [ |
+ '-fomit-frame-pointer', |
], |
}], |
['clang==1', { |