hubert.reinterpretcast created this revision.
hubert.reinterpretcast added reviewers: chill, dmgreen.
Herald added subscribers: danielkiss, kristof.beyls.
Herald added a project: clang.

The `arm_cmse.h` header includes standard headers, but some tests that include 
this header explicitly specify a target. The standard headers found via the 
standard include paths need not be compatible with the explicitly-specified 
target from the tests. In order to avoid test failures caused by such 
incompatibility, this patch adds `-ffreestanding` to the tests.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D79693

Files:
  clang/test/CodeGen/arm-cmse-nonsecure.c
  clang/test/CodeGen/arm-cmse-secure.c


Index: clang/test/CodeGen/arm-cmse-secure.c
===================================================================
--- clang/test/CodeGen/arm-cmse-secure.c
+++ clang/test/CodeGen/arm-cmse-secure.c
@@ -1,5 +1,5 @@
-// RUN: %clang -mlittle-endian -mcmse -target thumbv8m.base-eabi -emit-llvm -S 
-o - %s | FileCheck %s
-// RUN: %clang -mbig-endian    -mcmse -target thumbv8m.base-eabi -emit-llvm -S 
-o - %s | FileCheck %s
+// RUN: %clang -ffreestanding -mlittle-endian -mcmse -target 
thumbv8m.base-eabi -emit-llvm -S -o - %s | FileCheck %s
+// RUN: %clang -ffreestanding -mbig-endian    -mcmse -target 
thumbv8m.base-eabi -emit-llvm -S -o - %s | FileCheck %s
 
 #include <arm_cmse.h>
 
Index: clang/test/CodeGen/arm-cmse-nonsecure.c
===================================================================
--- clang/test/CodeGen/arm-cmse-nonsecure.c
+++ clang/test/CodeGen/arm-cmse-nonsecure.c
@@ -1,5 +1,5 @@
-// RUN: %clang  -mlittle-endian -target thumbv8m.base-eabi  -emit-llvm -S -o - 
%s | FileCheck %s
-// RUN: %clang  -mbig-endian    -target thumbv8m.base-eabi  -emit-llvm -S -o - 
%s | FileCheck %s
+// RUN: %clang -ffreestanding -mlittle-endian -target thumbv8m.base-eabi 
-emit-llvm -S -o - %s | FileCheck %s
+// RUN: %clang -ffreestanding -mbig-endian    -target thumbv8m.base-eabi 
-emit-llvm -S -o - %s | FileCheck %s
 
 #include <arm_cmse.h>
 


Index: clang/test/CodeGen/arm-cmse-secure.c
===================================================================
--- clang/test/CodeGen/arm-cmse-secure.c
+++ clang/test/CodeGen/arm-cmse-secure.c
@@ -1,5 +1,5 @@
-// RUN: %clang -mlittle-endian -mcmse -target thumbv8m.base-eabi -emit-llvm -S -o - %s | FileCheck %s
-// RUN: %clang -mbig-endian    -mcmse -target thumbv8m.base-eabi -emit-llvm -S -o - %s | FileCheck %s
+// RUN: %clang -ffreestanding -mlittle-endian -mcmse -target thumbv8m.base-eabi -emit-llvm -S -o - %s | FileCheck %s
+// RUN: %clang -ffreestanding -mbig-endian    -mcmse -target thumbv8m.base-eabi -emit-llvm -S -o - %s | FileCheck %s
 
 #include <arm_cmse.h>
 
Index: clang/test/CodeGen/arm-cmse-nonsecure.c
===================================================================
--- clang/test/CodeGen/arm-cmse-nonsecure.c
+++ clang/test/CodeGen/arm-cmse-nonsecure.c
@@ -1,5 +1,5 @@
-// RUN: %clang  -mlittle-endian -target thumbv8m.base-eabi  -emit-llvm -S -o - %s | FileCheck %s
-// RUN: %clang  -mbig-endian    -target thumbv8m.base-eabi  -emit-llvm -S -o - %s | FileCheck %s
+// RUN: %clang -ffreestanding -mlittle-endian -target thumbv8m.base-eabi -emit-llvm -S -o - %s | FileCheck %s
+// RUN: %clang -ffreestanding -mbig-endian    -target thumbv8m.base-eabi -emit-llvm -S -o - %s | FileCheck %s
 
 #include <arm_cmse.h>
 
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to