1 |
vapier 09/01/26 03:46:03 |
2 |
|
3 |
Modified: 64_all_gcc43-pr34571.patch |
4 |
Log: |
5 |
update patch with what was actually committed |
6 |
|
7 |
Revision Changes Path |
8 |
1.2 src/patchsets/gcc/4.3.2/gentoo/64_all_gcc43-pr34571.patch |
9 |
|
10 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.3.2/gentoo/64_all_gcc43-pr34571.patch?rev=1.2&view=markup |
11 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.3.2/gentoo/64_all_gcc43-pr34571.patch?rev=1.2&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.3.2/gentoo/64_all_gcc43-pr34571.patch?r1=1.1&r2=1.2 |
13 |
|
14 |
Index: 64_all_gcc43-pr34571.patch |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo/src/patchsets/gcc/4.3.2/gentoo/64_all_gcc43-pr34571.patch,v |
17 |
retrieving revision 1.1 |
18 |
retrieving revision 1.2 |
19 |
diff -u -r1.1 -r1.2 |
20 |
--- 64_all_gcc43-pr34571.patch 6 Sep 2008 20:37:07 -0000 1.1 |
21 |
+++ 64_all_gcc43-pr34571.patch 26 Jan 2009 03:46:03 -0000 1.2 |
22 |
@@ -1,34 +1,22 @@ |
23 |
http://gcc.gnu.org/PR34571 |
24 |
|
25 |
-2007-12-26 Rask Ingemann Lambertsen <rask@×××××××.dk> |
26 |
+2009-01-11 Uros Bizjak <ubizjak@×××××.com> |
27 |
+ |
28 |
+ Backport from mainline: |
29 |
+ 2008-12-22 Uros Bizjak <ubizjak@×××××.com> |
30 |
|
31 |
PR target/34571 |
32 |
- * config/alpha/alpha.c (alpha_cannot_force_const_mem): Use |
33 |
- symbolic_operand. |
34 |
- * varasm.c (output_constant_pool_1): Fix typo. |
35 |
+ * config/alpha/predicates.md (symbolic_operand): Return 1 for a |
36 |
+ label_ref with an offset. |
37 |
|
38 |
-Index: gcc/config/alpha/alpha.c |
39 |
-=================================================================== |
40 |
---- gcc/config/alpha/alpha.c (revision 131132) |
41 |
-+++ gcc/config/alpha/alpha.c (working copy) |
42 |
-@@ -1112,10 +1112,9 @@ alpha_legitimize_address (rtx x, rtx scr |
43 |
- |
44 |
- static bool |
45 |
- alpha_cannot_force_const_mem (rtx x) |
46 |
- { |
47 |
-- enum rtx_code code = GET_CODE (x); |
48 |
-- return code == SYMBOL_REF || code == LABEL_REF || code == CONST; |
49 |
-+ return symbolic_operand (x, GET_MODE (x)); |
50 |
- } |
51 |
- |
52 |
- /* We do not allow indirect calls to be optimized into sibling calls, nor |
53 |
- can we allow a call to a function with a different GP to be optimized |
54 |
-Index: gcc/varasm.c |
55 |
-=================================================================== |
56 |
---- gcc/varasm.c (revision 131132) |
57 |
-+++ gcc/varasm.c (working copy) |
58 |
-@@ -3709,9 +3709,9 @@ output_constant_pool_1 (struct constant_ |
59 |
- tmp = XEXP (XEXP (x, 0), 0); |
60 |
+ 2008-03-31 James E. Wilson <wilson@×××××××××.org> |
61 |
+ |
62 |
+ * varasm.c (output_constant_pool_1): In LABEL_REF check, |
63 |
+ use tmp consistently. |
64 |
+ |
65 |
+--- branches/gcc-4_3-branch/gcc/varasm.c 2009/01/11 13:42:32 143271 |
66 |
++++ branches/gcc-4_3-branch/gcc/varasm.c 2009/01/11 14:33:28 143272 |
67 |
+@@ -3710,7 +3710,7 @@ |
68 |
/* FALLTHRU */ |
69 |
|
70 |
case LABEL_REF: |
71 |
@@ -37,4 +25,15 @@ |
72 |
gcc_assert (!INSN_DELETED_P (tmp)); |
73 |
gcc_assert (!NOTE_P (tmp) |
74 |
|| NOTE_KIND (tmp) != NOTE_INSN_DELETED); |
75 |
- break; |
76 |
+--- branches/gcc-4_3-branch/gcc/config/alpha/predicates.md 2009/01/11 13:42:32 143271 |
77 |
++++ branches/gcc-4_3-branch/gcc/config/alpha/predicates.md 2009/01/11 14:33:28 143272 |
78 |
+@@ -390,7 +390,8 @@ |
79 |
+ (ior (match_code "symbol_ref,label_ref") |
80 |
+ (and (match_code "const") |
81 |
+ (match_test "GET_CODE (XEXP (op,0)) == PLUS |
82 |
+- && GET_CODE (XEXP (XEXP (op,0), 0)) == SYMBOL_REF |
83 |
++ && (GET_CODE (XEXP (XEXP (op,0), 0)) == SYMBOL_REF |
84 |
++ || GET_CODE (XEXP (XEXP (op,0), 0)) == LABEL_REF) |
85 |
+ && GET_CODE (XEXP (XEXP (op,0), 1)) == CONST_INT")))) |
86 |
+ |
87 |
+ ;; Return true if OP is valid for 16-bit DTP relative relocations. |