Index: clang/lib/Driver/ToolChains/Arch/AArch64.cpp =================================================================== --- clang/lib/Driver/ToolChains/Arch/AArch64.cpp +++ clang/lib/Driver/ToolChains/Arch/AArch64.cpp @@ -612,8 +612,8 @@ Features.push_back("+fix-cortex-a53-835769"); else Features.push_back("-fix-cortex-a53-835769"); - } else if (Triple.isAndroid()) { - // Enabled A53 errata (835769) workaround by default on android + } else if (Triple.isAndroid() || Triple.isOSFuchsia()) { + // Enabled A53 errata (835769) workaround by default on Android and Fuchsia Features.push_back("+fix-cortex-a53-835769"); } Index: clang/test/Driver/aarch64-fix-cortex-a53-835769.c =================================================================== --- clang/test/Driver/aarch64-fix-cortex-a53-835769.c +++ clang/test/Driver/aarch64-fix-cortex-a53-835769.c @@ -8,6 +8,9 @@ // RUN: %clang -target aarch64-android-eabi %s -### 2>&1 \ // RUN: | FileCheck --check-prefix=CHECK-YES %s +// RUN: %clang --target=aarch64-fuchsia %s -### 2>&1 \ +// RUN: | FileCheck --check-prefix=CHECK-YES %s + // CHECK-DEF-NOT: "{[+-]}fix-cortex-a53-835769" // CHECK-YES: "+fix-cortex-a53-835769" // CHECK-NO: "-fix-cortex-a53-835769"