From 9bbe96068dcc77da1578bc7ab821005455381386 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Fri, 30 Jun 2023 19:31:57 +0000 Subject: [PATCH] Remove -fstrict-aliasing from arm32. Our global default is -fno-strict-aliasing (including for 32-bit x86), so let's avoid a source of arm32-only bugs. Bug: http://b/31600139 Test: treehugger Change-Id: Iaf3069200b2969718593387dc5b756c574a5d68a --- cc/config/arm_device.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cc/config/arm_device.go b/cc/config/arm_device.go index dec2b4552..3397e3da7 100644 --- a/cc/config/arm_device.go +++ b/cc/config/arm_device.go @@ -43,9 +43,7 @@ var ( armNoFixCortexA8LdFlags = []string{"-Wl,--no-fix-cortex-a8"} - armArmCflags = []string{ - "-fstrict-aliasing", - } + armArmCflags = []string{} armThumbCflags = []string{ "-mthumb",