]> granicus.if.org Git - clang/commitdiff
Merging r243417:
authorHans Wennborg <hans@hanshq.net>
Tue, 28 Jul 2015 16:39:38 +0000 (16:39 +0000)
committerHans Wennborg <hans@hanshq.net>
Tue, 28 Jul 2015 16:39:38 +0000 (16:39 +0000)
------------------------------------------------------------------------
r243417 | kbeyls | 2015-07-28 07:23:47 -0700 (Tue, 28 Jul 2015) | 3 lines

RegParmMax must be 0 for AArch64, as the regparm function attribute is not supported on AArch64.

------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_37@243442 91177308-0d34-0410-b5e6-96231b3b80d8

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

index 65f8a45e7b9ba9ea93ccc8e078b49baa355e561f..dfe6593371e70263e1bbda867810241c59f69208 100644 (file)
@@ -4978,7 +4978,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}}