summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpasko@chromium.org <pasko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-16 16:56:47 +0000
committerpasko@chromium.org <pasko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-16 16:56:47 +0000
commita0e681cc2bfb1f549f7c46c1a11d62757905ed03 (patch)
treef1947e18a461c37d64d6447f2cac037895b8721b
parent885fe5dc0508fa7973397d2414049ba2f4b9bf9d (diff)
downloadchromium_src-a0e681cc2bfb1f549f7c46c1a11d62757905ed03.zip
chromium_src-a0e681cc2bfb1f549f7c46c1a11d62757905ed03.tar.gz
chromium_src-a0e681cc2bfb1f549f7c46c1a11d62757905ed03.tar.bz2
Android: bake GCC flags for perf into profiling=1 in GYP_DEFINES
BUG=366632 Review URL: https://codereview.chromium.org/283963002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@271037 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--build/common.gypi12
1 files changed, 10 insertions, 2 deletions
diff --git a/build/common.gypi b/build/common.gypi
index 23350c1..9d061a3 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -3511,8 +3511,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', {