ANDROID: disable CONFIG_CC_OPTIMIZE_FOR_SIZE
CONFIG_CC_OPTIMIZE_FOR_SIZE is set on moderm android devices.
Originally this config was set with the assumption that smaller
code size would yield hot cache lines and faster code, however,
that's not the case today.
On marlin I see >150ms boot time speed up with turning off this CONFIG.
Also with CONFIG_CC_OPTIMIZE_FOR_SIZE set, we suppressed the compiler
warning of unused variables which can lead undefined behavior e.g.
memory corruption and panic.
Bug: 33353384
Test: On marlin
Signed-off-by:
Wei Wang <wvw@google.com>
Change-Id: Ib127ede04e700650b97541d6cca16da659f45c69
Loading
Please register or sign in to comment