[PATCH] D24245: [ARM] ARM-specific attributes should be accepted for big-endian

Oliver Stannard via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 15 02:04:12 PDT 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL281596: [ARM] ARM-specific attributes should be accepted for big-endian (authored by olista01).

Changed prior to commit:
  https://reviews.llvm.org/D24245?vs=70364&id=71485#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D24245

Files:
  cfe/trunk/include/clang/Basic/Attr.td
  cfe/trunk/test/Sema/arm-interrupt-attr.c

Index: cfe/trunk/include/clang/Basic/Attr.td
===================================================================
--- cfe/trunk/include/clang/Basic/Attr.td
+++ cfe/trunk/include/clang/Basic/Attr.td
@@ -254,7 +254,7 @@
   list<string> OSes;
   list<string> CXXABIs;
 }
-def TargetARM : TargetArch<["arm", "thumb"]>;
+def TargetARM : TargetArch<["arm", "thumb", "armeb", "thumbeb"]>;
 def TargetMips : TargetArch<["mips", "mipsel"]>;
 def TargetMSP430 : TargetArch<["msp430"]>;
 def TargetX86 : TargetArch<["x86"]>;
Index: cfe/trunk/test/Sema/arm-interrupt-attr.c
===================================================================
--- cfe/trunk/test/Sema/arm-interrupt-attr.c
+++ cfe/trunk/test/Sema/arm-interrupt-attr.c
@@ -1,4 +1,7 @@
 // RUN: %clang_cc1 %s -triple arm-apple-darwin -verify -fsyntax-only
+// RUN: %clang_cc1 %s -triple thumb-apple-darwin -verify -fsyntax-only
+// RUN: %clang_cc1 %s -triple armeb-none-eabi -verify -fsyntax-only
+// RUN: %clang_cc1 %s -triple thumbeb-none-eabi -verify -fsyntax-only
 
 __attribute__((interrupt(IRQ))) void foo() {} // expected-error {{'interrupt' attribute requires a string}}
 __attribute__((interrupt("irq"))) void foo1() {} // expected-warning {{'interrupt' attribute argument not supported: irq}}


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D24245.71485.patch
Type: text/x-patch
Size: 1252 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160915/fc7635ff/attachment.bin>


More information about the cfe-commits mailing list