Gentoo Archives: gentoo-commits

From: "Keri Harris (keri)" <keri@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-lang/gprolog/files: gprolog-1.4.0-ma2asm-pllong.patch
Date: Tue, 05 Jul 2011 07:47:41
Message-Id: 20110705074732.48C712004B@flycatcher.gentoo.org
1 keri 11/07/05 07:47:32
2
3 Added: gprolog-1.4.0-ma2asm-pllong.patch
4 Log:
5 Fix Ma2Asm PlLong calls on ppc. Reported by Laurent G. in bug #373881
6
7 (Portage version: 2.1.10.3/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 dev-lang/gprolog/files/gprolog-1.4.0-ma2asm-pllong.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/gprolog/files/gprolog-1.4.0-ma2asm-pllong.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/gprolog/files/gprolog-1.4.0-ma2asm-pllong.patch?rev=1.1&content-type=text/plain
14
15 Index: gprolog-1.4.0-ma2asm-pllong.patch
16 ===================================================================
17 diff -ur gprolog-1.4.0.orig/src/Ma2Asm/alpha_any.c gprolog-1.4.0/src/Ma2Asm/alpha_any.c
18 --- gprolog-1.4.0.orig/src/Ma2Asm/alpha_any.c 2011-03-29 05:20:05.000000000 +1300
19 +++ gprolog-1.4.0/src/Ma2Asm/alpha_any.c 2011-07-05 19:38:52.000000000 +1200
20 @@ -870,7 +870,7 @@
21 * *
22 *-------------------------------------------------------------------------*/
23 int
24 -Call_C_Arg_Int(int offset, long int_val)
25 +Call_C_Arg_Int(int offset, PlLong int_val)
26 {
27 switch (offset)
28 {
29 @@ -1433,7 +1433,7 @@
30 * *
31 *-------------------------------------------------------------------------*/
32 void
33 -Cmp_Ret_And_Int(long int_val)
34 +Cmp_Ret_And_Int(PlLong int_val)
35 {
36 Inst_Printf("lda", "$1,%ld", int_val);
37 Inst_Printf("subq", "$0,$1,$1");
38 @@ -1551,7 +1551,7 @@
39 * *
40 *-------------------------------------------------------------------------*/
41 void
42 -Dico_Long(char *name, int global, VType vtype, long value)
43 +Dico_Long(char *name, int global, VType vtype, PlLong value)
44 {
45 switch (vtype)
46 {
47 diff -ur gprolog-1.4.0.orig/src/Ma2Asm/mips_irix.c gprolog-1.4.0/src/Ma2Asm/mips_irix.c
48 --- gprolog-1.4.0.orig/src/Ma2Asm/mips_irix.c 2011-03-29 05:20:05.000000000 +1300
49 +++ gprolog-1.4.0/src/Ma2Asm/mips_irix.c 2011-07-05 19:39:30.000000000 +1200
50 @@ -510,7 +510,7 @@
51 * *
52 *-------------------------------------------------------------------------*/
53 int
54 -Call_C_Arg_Int(int offset, long int_val)
55 +Call_C_Arg_Int(int offset, PlLong int_val)
56 {
57 switch (offset)
58 {
59 @@ -1125,7 +1125,7 @@
60 * *
61 *-------------------------------------------------------------------------*/
62 void
63 -Cmp_Ret_And_Int(long int_val)
64 +Cmp_Ret_And_Int(PlLong int_val)
65 {
66 Inst_Printf("li", "$24,%d", int_val);
67 Inst_Printf("sub", "$12,$2,$24"); /* $2 - $24 -> $12 */
68 @@ -1238,7 +1238,7 @@
69 * *
70 *-------------------------------------------------------------------------*/
71 void
72 -Dico_Long(char *name, int global, VType vtype, long value)
73 +Dico_Long(char *name, int global, VType vtype, PlLong value)
74 {
75 switch (vtype)
76 {
77 diff -ur gprolog-1.4.0.orig/src/Ma2Asm/powerpc_any.c gprolog-1.4.0/src/Ma2Asm/powerpc_any.c
78 --- gprolog-1.4.0.orig/src/Ma2Asm/powerpc_any.c 2011-03-29 05:20:05.000000000 +1300
79 +++ gprolog-1.4.0/src/Ma2Asm/powerpc_any.c 2011-07-05 19:17:16.000000000 +1200
80 @@ -500,7 +500,7 @@
81 * *
82 *-------------------------------------------------------------------------*/
83 int
84 -Call_C_Arg_Int(int offset, long int_val)
85 +Call_C_Arg_Int(int offset, PlLong int_val)
86 {
87 BEFORE_ARG;
88
89 @@ -835,7 +835,7 @@
90 * *
91 *-------------------------------------------------------------------------*/
92 void
93 -Cmp_Ret_And_Int(long int_val)
94 +Cmp_Ret_And_Int(PlLong int_val)
95 {
96 if (LITTLE_INT(int_val))
97 Inst_Printf("cmpwi", CR(1) "," R(3) ",%ld", int_val);
98 @@ -958,7 +958,7 @@
99 * *
100 *-------------------------------------------------------------------------*/
101 void
102 -Dico_Long(char *name, int global, VType vtype, long value)
103 +Dico_Long(char *name, int global, VType vtype, PlLong value)
104 {
105 switch (vtype)
106 {
107 diff -ur gprolog-1.4.0.orig/src/Ma2Asm/sparc_any.c gprolog-1.4.0/src/Ma2Asm/sparc_any.c
108 --- gprolog-1.4.0.orig/src/Ma2Asm/sparc_any.c 2011-03-29 05:20:05.000000000 +1300
109 +++ gprolog-1.4.0/src/Ma2Asm/sparc_any.c 2011-07-05 19:18:29.000000000 +1200
110 @@ -449,7 +449,7 @@
111 * *
112 *-------------------------------------------------------------------------*/
113 int
114 -Call_C_Arg_Int(int offset, long int_val)
115 +Call_C_Arg_Int(int offset, PlLong int_val)
116 {
117 BEFORE_ARG;
118
119 @@ -792,7 +792,7 @@
120 * *
121 *-------------------------------------------------------------------------*/
122 void
123 -Cmp_Ret_And_Int(long int_val)
124 +Cmp_Ret_And_Int(PlLong int_val)
125 {
126 if (LITTLE_INT(int_val))
127 Inst_Printf("cmp", "%%o0,%ld", int_val);
128 @@ -912,7 +912,7 @@
129 * *
130 *-------------------------------------------------------------------------*/
131 void
132 -Dico_Long(char *name, int global, VType vtype, long value)
133 +Dico_Long(char *name, int global, VType vtype, PlLong value)
134 {
135
136 switch (vtype)