[clang] [clang][driver] Allow unaligned access on ARMv7 and higher by default (PR #82400)

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 20 11:38:32 PST 2024


================
@@ -22,6 +22,14 @@
 // RUN: %clang -target armv7-windows -### %s 2> %t
 // RUN: FileCheck --check-prefix=CHECK-UNALIGNED-ARM < %t %s
 
+/// Ensure that by default before ARMv7 we default to +strict-align
+// RUN: %clang -target armv6 -### %s 2> %t
----------------
MaskRay wrote:

`--target=` for new tests.

`-target ` has been deprecated since about Clang 3.4

https://github.com/llvm/llvm-project/pull/82400


More information about the cfe-commits mailing list