1 |
rhill 16/04/29 00:29:02 |
2 |
|
3 |
Modified: README.history |
4 |
Added: 91_all_pr69140-msabi-stack-alignment.patch |
5 |
Log: |
6 |
Add patch for bug #574044 and push out p1.1. |
7 |
|
8 |
Revision Changes Path |
9 |
1.4 src/patchsets/gcc/5.3.0/gentoo/README.history |
10 |
|
11 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/5.3.0/gentoo/README.history?rev=1.4&view=markup |
12 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/5.3.0/gentoo/README.history?rev=1.4&content-type=text/plain |
13 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/5.3.0/gentoo/README.history?r1=1.3&r2=1.4 |
14 |
|
15 |
Index: README.history |
16 |
=================================================================== |
17 |
RCS file: /var/cvsroot/gentoo/src/patchsets/gcc/5.3.0/gentoo/README.history,v |
18 |
retrieving revision 1.3 |
19 |
retrieving revision 1.4 |
20 |
diff -u -r1.3 -r1.4 |
21 |
--- README.history 26 Jan 2016 21:05:43 -0000 1.3 |
22 |
+++ README.history 29 Apr 2016 00:29:02 -0000 1.4 |
23 |
@@ -1,6 +1,7 @@ |
24 |
-1.1 [pending] |
25 |
+1.1 28 Apr 2016 |
26 |
+ 36_all_gcc-ia64-pr60465.patch |
27 |
U 74_all_gcc5_isl-dl.patch |
28 |
+ + 91_all_pr69140-msabi-stack-alignment.patch |
29 |
|
30 |
1.0 05 Dec 2015 |
31 |
+ 05_all_gcc-spec-env.patch |
32 |
|
33 |
|
34 |
|
35 |
1.1 src/patchsets/gcc/5.3.0/gentoo/91_all_pr69140-msabi-stack-alignment.patch |
36 |
|
37 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/5.3.0/gentoo/91_all_pr69140-msabi-stack-alignment.patch?rev=1.1&view=markup |
38 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/5.3.0/gentoo/91_all_pr69140-msabi-stack-alignment.patch?rev=1.1&content-type=text/plain |
39 |
|
40 |
Index: 91_all_pr69140-msabi-stack-alignment.patch |
41 |
=================================================================== |
42 |
https://bugs.gentoo.org/574044 |
43 |
https://gcc.gnu.org/PR69140 |
44 |
|
45 |
commit 11e330df4d27cf801f7edd61605082f66d1ee4ae |
46 |
Author: uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4> |
47 |
Date: Mon Jan 18 16:19:53 2016 +0000 |
48 |
|
49 |
Backport from mainline |
50 |
2016-01-07 Uros Bizjak <ubizjak@×××××.com> |
51 |
|
52 |
PR target/69140 |
53 |
* config/i386/i386.c (ix86_frame_pointer_required): Enable |
54 |
frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned. |
55 |
|
56 |
testsuite/ChangeLog: |
57 |
|
58 |
Backport from mainline |
59 |
2016-01-06 Uros Bizjak <ubizjak@×××××.com> |
60 |
|
61 |
PR target/69140 |
62 |
* gcc.target/i386/pr69140.c: New test |
63 |
|
64 |
|
65 |
|
66 |
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-5-branch@232528 138bc75d-0d04-0410-961f-82ee72b054a4 |
67 |
--- |
68 |
gcc/ChangeLog | 9 +++++++++ |
69 |
gcc/config/i386/i386.c | 4 ++++ |
70 |
gcc/testsuite/ChangeLog | 8 ++++++++ |
71 |
gcc/testsuite/gcc.target/i386/pr69140.c | 24 ++++++++++++++++++++++++ |
72 |
4 files changed, 45 insertions(+) |
73 |
|
74 |
--- a/gcc/config/i386/i386.c |
75 |
+++ b/gcc/config/i386/i386.c |
76 |
@@ -9690,6 +9690,10 @@ ix86_frame_pointer_required (void) |
77 |
if (TARGET_64BIT_MS_ABI && get_frame_size () > SEH_MAX_FRAME_SIZE) |
78 |
return true; |
79 |
|
80 |
+ /* SSE saves require frame-pointer when stack is misaligned. */ |
81 |
+ if (TARGET_64BIT_MS_ABI && ix86_incoming_stack_boundary < 128) |
82 |
+ return true; |
83 |
+ |
84 |
/* In ix86_option_override_internal, TARGET_OMIT_LEAF_FRAME_POINTER |
85 |
turns off the frame pointer by default. Turn it back on now if |
86 |
we've not got a leaf function. */ |
87 |
--- /dev/null |
88 |
+++ b/gcc/testsuite/gcc.target/i386/pr69140.c |
89 |
@@ -0,0 +1,24 @@ |
90 |
+/* { dg-do compile { target lp64 } } */ |
91 |
+/* { dg-options "-O2 -mincoming-stack-boundary=3" } */ |
92 |
+ |
93 |
+typedef struct { |
94 |
+ unsigned int buf[4]; |
95 |
+ unsigned char in[64]; |
96 |
+} MD4_CTX; |
97 |
+ |
98 |
+static void |
99 |
+MD4Transform (unsigned int buf[4], const unsigned int in[16]) |
100 |
+{ |
101 |
+ unsigned int a, b, c, d; |
102 |
+ (b) += ((((c)) & ((d))) | ((~(c)) & ((a)))) + (in[7]); |
103 |
+ (a) += ((((b)) & ((c))) | ((~(b)) & ((d)))) + (in[8]); |
104 |
+ (d) += ((((a)) & ((b))) | ((~(a)) & ((c)))) + (in[9]); |
105 |
+ buf[3] += d; |
106 |
+} |
107 |
+ |
108 |
+void __attribute__((ms_abi)) |
109 |
+MD4Update (MD4_CTX *ctx, const unsigned char *buf) |
110 |
+{ |
111 |
+ MD4Transform( ctx->buf, (unsigned int *)ctx->in); |
112 |
+ MD4Transform( ctx->buf, (unsigned int *)ctx->in); |
113 |
+} |