Index: build/config/compiler/BUILD.gn |
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn |
index 320b7fce75bb11af6037a317aecf98aaeb47c8f4..630db84f14be471ba134fa4bb559c5808e25cbff 100644 |
--- a/build/config/compiler/BUILD.gn |
+++ b/build/config/compiler/BUILD.gn |
@@ -1385,7 +1385,12 @@ config("default_stack_frames") { |
if (enabled_frame_pointers) { |
cflags = [ "-fno-omit-frame-pointer" ] |
} else { |
- cflags = [ "-fomit-frame-pointer" ] |
+ if (is_android || current_cpu != "arm") { |
+ # TODO(710131): Remove this special-casing for ARM 32 bit once we |
+ # have determined why -fomit-frame-pointer triggers CPU errata in |
+ # ARM A12/A17 devices. |
+ cflags = [ "-fomit-frame-pointer" ] |
+ } |
} |
} |
# On Windows, the flag to enable framepointers "/Oy-" must always come after |