]> granicus.if.org Git - clang/commitdiff
RegParmMax must be 0 for AArch64, as the regparm function attribute is not supported...
authorKristof Beyls <kristof.beyls@arm.com>
Tue, 28 Jul 2015 14:23:47 +0000 (14:23 +0000)
committerKristof Beyls <kristof.beyls@arm.com>
Tue, 28 Jul 2015 14:23:47 +0000 (14:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@243417 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Basic/Targets.cpp
test/CodeGen/le32-regparm.c

index 8ecaeaf1d1c6bf4ead28f03cc9c7b464f909308c..f229c997f00dc603d625b4c432cdf17158575a98 100644 (file)
@@ -5082,7 +5082,6 @@ public:
 
     LongWidth = LongAlign = PointerWidth = PointerAlign = 64;
     MaxVectorAlign = 128;
-    RegParmMax = 8;
     MaxAtomicInlineWidth = 128;
     MaxAtomicPromoteWidth = 128;
 
index c8f70694c43d1c24a6e262f22ecc91a245fa6cd2..ecb1030aa1ff21278b1951b133b094fd605473e0 100644 (file)
@@ -1,4 +1,5 @@
 // RUN: %clang_cc1 -triple le32-unknown-nacl %s -fsyntax-only -verify
+// RUN: %clang_cc1 -triple aarch64 %s -fsyntax-only -verify
 
 void __attribute__((regparm(2))) fc_f1(int i, int j, int k) {} // expected-error{{'regparm' is not valid on this platform}}