]> granicus.if.org Git - clang/commitdiff
Puny 24-byte structs are returned by value on SPARC.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 14 Jan 2014 06:19:26 +0000 (06:19 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 14 Jan 2014 06:19:26 +0000 (06:19 +0000)
Pad these structs up so they are sret-returned even on that
architecture.

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

test/CodeGen/sret.c
test/CodeGen/sret2.c

index 828bf9b42d61e0e9f025927add5648307e85d88d..5f0d07404a169e9c9bb5ecbc5d836637d77ff77e 100644 (file)
@@ -4,6 +4,8 @@ struct abc {
  long a;
  long b;
  long c;
+ long d;
+ long e;
 };
  
 struct abc foo1(void);
index 375746251163e36c70d106c9958491297efdd474..d103d87610fd8bc42cdd2ff2a40f597c6a8436dc 100644 (file)
@@ -4,6 +4,8 @@ struct abc {
  long a;
  long b;
  long c;
+ long d;
+ long e;
 };
  
 struct abc foo2(){}