1 |
vapier 08/06/22 11:00:02 |
2 |
|
3 |
Added: 21_all_gcc32-pr7768.patch 22_all_gcc32-pr8213.patch |
4 |
23_all_gcc-3.2.2-cross-compile.patch |
5 |
24_all_gcc-3.2.2-no-COPYING-cross-compile.patch |
6 |
Log: |
7 |
move from $FILESDIR |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 src/patchsets/gcc/3.2.2/gentoo/21_all_gcc32-pr7768.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/3.2.2/gentoo/21_all_gcc32-pr7768.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/3.2.2/gentoo/21_all_gcc32-pr7768.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: 21_all_gcc32-pr7768.patch |
16 |
=================================================================== |
17 |
2002-09-14 Nathan Sidwell <nathan@××××××××××××.com> |
18 |
|
19 |
PR c++/7768 |
20 |
* pt.c (build_template_decl): Copy DECL_DESTRUCTOR_P. |
21 |
|
22 |
2002-09-15 Nathan Sidwell <nathan@××××××××××××.com> |
23 |
|
24 |
* g++.dg/template/pretty1.C: New test. |
25 |
|
26 |
--- gcc-3.2.1/gcc/cp/pt.c.pr7768 2003-01-20 14:14:15.000000000 +0100 |
27 |
+++ gcc-3.2.1/gcc/cp/pt.c 2003-02-08 14:42:15.000000000 +0100 |
28 |
@@ -2108,6 +2108,7 @@ build_template_decl (decl, parms) |
29 |
DECL_VIRTUAL_CONTEXT (tmpl) = DECL_VIRTUAL_CONTEXT (decl); |
30 |
DECL_STATIC_FUNCTION_P (tmpl) = DECL_STATIC_FUNCTION_P (decl); |
31 |
DECL_CONSTRUCTOR_P (tmpl) = DECL_CONSTRUCTOR_P (decl); |
32 |
+ DECL_DESTRUCTOR_P (tmpl) = DECL_DESTRUCTOR_P (decl); |
33 |
DECL_NONCONVERTING_P (tmpl) = DECL_NONCONVERTING_P (decl); |
34 |
DECL_ASSIGNMENT_OPERATOR_P (tmpl) = DECL_ASSIGNMENT_OPERATOR_P (decl); |
35 |
if (DECL_OVERLOADED_OPERATOR_P (decl)) |
36 |
--- gcc-3.2.1/gcc/testsuite/g++.dg/template/pretty1.C.pr7768 2003-02-08 14:42:03.000000000 +0100 |
37 |
+++ gcc-3.2.1/gcc/testsuite/g++.dg/template/pretty1.C 2003-02-08 14:41:52.000000000 +0100 |
38 |
@@ -0,0 +1,43 @@ |
39 |
+// { dg-do run } |
40 |
+ |
41 |
+// Copyright (C) 2002 Free Software Foundation, Inc. |
42 |
+// Contributed by Nathan Sidwell 14 Sep 2002 <nathan@××××××××××××.com> |
43 |
+ |
44 |
+// PR 7768 template dtor pretty function wrong |
45 |
+ |
46 |
+#include <string.h> |
47 |
+ |
48 |
+static size_t current = 0; |
49 |
+static bool error = false; |
50 |
+ |
51 |
+static char const *names[] = |
52 |
+{ |
53 |
+ "X<T>::X() [with T = void]", |
54 |
+ "X<T>::~X() [with T = void]", |
55 |
+ 0 |
56 |
+}; |
57 |
+ |
58 |
+void Verify (char const *ptr) |
59 |
+{ |
60 |
+ error = strcmp (ptr, names[current++]); |
61 |
+} |
62 |
+ |
63 |
+template <typename T> |
64 |
+struct X |
65 |
+{ |
66 |
+ X() { Verify (__PRETTY_FUNCTION__); } |
67 |
+ ~X() { Verify (__PRETTY_FUNCTION__); } |
68 |
+}; |
69 |
+ |
70 |
+int main() |
71 |
+{ |
72 |
+ { |
73 |
+ X<void> x; |
74 |
+ |
75 |
+ if (error) |
76 |
+ return current; |
77 |
+ } |
78 |
+ if (error) |
79 |
+ return current; |
80 |
+ return 0; |
81 |
+} |
82 |
|
83 |
|
84 |
|
85 |
1.1 src/patchsets/gcc/3.2.2/gentoo/22_all_gcc32-pr8213.patch |
86 |
|
87 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/3.2.2/gentoo/22_all_gcc32-pr8213.patch?rev=1.1&view=markup |
88 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/3.2.2/gentoo/22_all_gcc32-pr8213.patch?rev=1.1&content-type=text/plain |
89 |
|
90 |
Index: 22_all_gcc32-pr8213.patch |
91 |
=================================================================== |
92 |
2002-10-30 Jan Hubicka <jh@××××.cz> |
93 |
|
94 |
PR target/8213 |
95 |
* config/i386/i386.c (ix86_expand_int_movcc): Fix RTL sharing problem. |
96 |
|
97 |
2002-11-04 Gwenole Beauchesne <gbeauchesne@××××××××××××.com> |
98 |
|
99 |
* testsuite/gcc.c-torture/execute/20021104.c: New test. |
100 |
|
101 |
--- gcc-3.2/gcc/config/i386/i386.c.pr8213 2002-11-04 12:56:37.000000000 -0500 |
102 |
+++ gcc-3.2/gcc/config/i386/i386.c 2002-11-04 13:21:22.000000000 -0500 |
103 |
@@ -8274,11 +8274,11 @@ ix86_expand_int_movcc (operands) |
104 |
/* On x86_64 the lea instruction operates on Pmode, so we need to get arithmetics |
105 |
done in proper mode to match. */ |
106 |
if (diff == 1) |
107 |
- tmp = out; |
108 |
+ tmp = copy_rtx (out); |
109 |
else |
110 |
{ |
111 |
rtx out1; |
112 |
- out1 = out; |
113 |
+ out1 = copy_rtx (out); |
114 |
tmp = gen_rtx_MULT (mode, out1, GEN_INT (diff & ~1)); |
115 |
nops++; |
116 |
if (diff & 1) |
117 |
@@ -8302,12 +8302,12 @@ ix86_expand_int_movcc (operands) |
118 |
clob = gen_rtx_REG (CCmode, FLAGS_REG); |
119 |
clob = gen_rtx_CLOBBER (VOIDmode, clob); |
120 |
|
121 |
- tmp = gen_rtx_SET (VOIDmode, out, tmp); |
122 |
+ tmp = gen_rtx_SET (VOIDmode, copy_rtx (out), tmp); |
123 |
tmp = gen_rtx_PARALLEL (VOIDmode, gen_rtvec (2, copy_rtx (tmp), clob)); |
124 |
emit_insn (tmp); |
125 |
} |
126 |
else |
127 |
- emit_insn (gen_rtx_SET (VOIDmode, out, tmp)); |
128 |
+ emit_insn (gen_rtx_SET (VOIDmode, copy_rtx (out), tmp)); |
129 |
} |
130 |
if (out != operands[0]) |
131 |
emit_move_insn (operands[0], copy_rtx (out)); |
132 |
--- gcc-3.2/gcc/testsuite/gcc.c-torture/execute/20021104.c.pr8213 2002-11-04 13:22:33.000000000 -0500 |
133 |
+++ gcc-3.2/gcc/testsuite/gcc.c-torture/execute/20021104.c 2002-11-04 13:24:12.000000000 -0500 |
134 |
@@ -0,0 +1,26 @@ |
135 |
+/* PR target/8213 |
136 |
+ This testcase, distilled from GNU gmp 4.1, was miscompiled on x86-64 |
137 |
+ because of RTL sharing problems. */ |
138 |
+ |
139 |
+int f(long x, long y) |
140 |
+{ |
141 |
+ if ((x < 0) == (y < 0)) |
142 |
+ { |
143 |
+ if (x == 0) |
144 |
+ return -(y != 0); |
145 |
+ if (y == 0) |
146 |
+ return x != 0; |
147 |
+ } |
148 |
+ else |
149 |
+ { |
150 |
+ return x >= 0 ? 1 : -1; |
151 |
+ } |
152 |
+} |
153 |
+ |
154 |
+int main(void) |
155 |
+{ |
156 |
+ if (f(-1, 1) != -1) |
157 |
+ abort(); |
158 |
+ |
159 |
+ return 0; |
160 |
+} |
161 |
|
162 |
|
163 |
|
164 |
1.1 src/patchsets/gcc/3.2.2/gentoo/23_all_gcc-3.2.2-cross-compile.patch |
165 |
|
166 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/3.2.2/gentoo/23_all_gcc-3.2.2-cross-compile.patch?rev=1.1&view=markup |
167 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/3.2.2/gentoo/23_all_gcc-3.2.2-cross-compile.patch?rev=1.1&content-type=text/plain |
168 |
|
169 |
Index: 23_all_gcc-3.2.2-cross-compile.patch |
170 |
=================================================================== |
171 |
--- gcc/configure.orig 2005-08-20 04:28:13.000000000 -0400 |
172 |
+++ gcc/configure 2005-08-20 04:28:38.000000000 -0400 |
173 |
@@ -6790,7 +6790,7 @@ |
174 |
# This prevents libgcc2 from containing any code which requires libc |
175 |
# support. |
176 |
inhibit_libc= |
177 |
-if test x$host != x$target && test x$with_headers = x; then |
178 |
+if test x$host != x$target && { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then |
179 |
inhibit_libc=-Dinhibit_libc |
180 |
else |
181 |
if test x$with_newlib = xyes; then |
182 |
|
183 |
|
184 |
|
185 |
1.1 src/patchsets/gcc/3.2.2/gentoo/24_all_gcc-3.2.2-no-COPYING-cross-compile.patch |
186 |
|
187 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/3.2.2/gentoo/24_all_gcc-3.2.2-no-COPYING-cross-compile.patch?rev=1.1&view=markup |
188 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/3.2.2/gentoo/24_all_gcc-3.2.2-no-COPYING-cross-compile.patch?rev=1.1&content-type=text/plain |
189 |
|
190 |
Index: 24_all_gcc-3.2.2-no-COPYING-cross-compile.patch |
191 |
=================================================================== |
192 |
--- gcc-3.2.2/configure.in |
193 |
+++ gcc-3.2.2/configure.in |
194 |
@@ -517,37 +517,6 @@ |
195 |
esac |
196 |
fi |
197 |
|
198 |
-# Handle ${copy_dirs} |
199 |
-set fnord ${copy_dirs} |
200 |
-shift |
201 |
-while [ $# != 0 ]; do |
202 |
- if [ -f $2/COPIED ] && [ x"`cat $2/COPIED`" = x"$1" ]; then |
203 |
- : |
204 |
- else |
205 |
- echo Copying $1 to $2 |
206 |
- |
207 |
- # Use the install script to create the directory and all required |
208 |
- # parent directories. |
209 |
- if [ -d $2 ]; then |
210 |
- : |
211 |
- else |
212 |
- echo >config.temp |
213 |
- ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED |
214 |
- fi |
215 |
- |
216 |
- # Copy the directory, assuming we have tar. |
217 |
- # FIXME: Should we use B in the second tar? Not all systems support it. |
218 |
- (cd $1; tar -cf - .) | (cd $2; tar -xpf -) |
219 |
- |
220 |
- # It is the responsibility of the user to correctly adjust all |
221 |
- # symlinks. If somebody can figure out how to handle them correctly |
222 |
- # here, feel free to add the code. |
223 |
- |
224 |
- echo $1 > $2/COPIED |
225 |
- fi |
226 |
- shift; shift |
227 |
-done |
228 |
- |
229 |
# Configure extra directories which are host specific |
230 |
|
231 |
case "${host}" in |
232 |
|
233 |
|
234 |
|
235 |
-- |
236 |
gentoo-commits@l.g.o mailing list |