]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - contrib/llvm/patches/patch-r262262-clang-r199188-sparc.diff
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / contrib / llvm / patches / patch-r262262-clang-r199188-sparc.diff
1 Pull in r199188 from upstream clang trunk (by Jakob Stoklund Olesen):
2
3   Puny 24-byte structs are returned by value on SPARC.
4
5   Pad these structs up so they are sret-returned even on that
6   architecture.
7
8 Introduced here: http://svnweb.freebsd.org/changeset/base/262262
9
10 Index: tools/clang/test/CodeGen/sret.c
11 ===================================================================
12 --- tools/clang/test/CodeGen/sret.c
13 +++ tools/clang/test/CodeGen/sret.c
14 @@ -4,6 +4,8 @@ struct abc {
15   long a;
16   long b;
17   long c;
18 + long d;
19 + long e;
20  };
21   
22  struct abc foo1(void);
23 Index: tools/clang/test/CodeGen/sret2.c
24 ===================================================================
25 --- tools/clang/test/CodeGen/sret2.c
26 +++ tools/clang/test/CodeGen/sret2.c
27 @@ -4,6 +4,8 @@ struct abc {
28   long a;
29   long b;
30   long c;
31 + long d;
32 + long e;
33  };
34   
35  struct abc foo2(){}