aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/png/files
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2004-07-24 18:12:36 +0800
committerache <ache@FreeBSD.org>2004-07-24 18:12:36 +0800
commit36de1e787954813f526b1d2259bc66dda4ad811c (patch)
treea843a00a3f6b8bdc62ca83580624b39a4956cae7 /graphics/png/files
parentdd97300e4f0755a693813bb48c8d38a461d7298a (diff)
downloadfreebsd-ports-graphics-36de1e787954813f526b1d2259bc66dda4ad811c.tar.gz
freebsd-ports-graphics-36de1e787954813f526b1d2259bc66dda4ad811c.tar.zst
freebsd-ports-graphics-36de1e787954813f526b1d2259bc66dda4ad811c.zip
Fix compiling with gcc 3.4
Submitted by: Andreas Kohn <andreas@syndrom23.de>
Diffstat (limited to 'graphics/png/files')
-rw-r--r--graphics/png/files/patch-pnggccrd.c26
1 files changed, 24 insertions, 2 deletions
diff --git a/graphics/png/files/patch-pnggccrd.c b/graphics/png/files/patch-pnggccrd.c
index 4a6e690ace8..c08c0a60dea 100644
--- a/graphics/png/files/patch-pnggccrd.c
+++ b/graphics/png/files/patch-pnggccrd.c
@@ -1,5 +1,5 @@
---- pnggccrd.c.orig Thu Dec 4 15:52:22 2003
-+++ pnggccrd.c Thu Dec 4 16:00:18 2003
+--- pnggccrd.c.old Thu Oct 3 15:32:28 2002
++++ pnggccrd.c Sat Jul 24 14:07:13 2004
@@ -1767,7 +1767,8 @@
: "1" (sptr), // esi // input regs
@@ -31,3 +31,25 @@
#if 0 /* %mm0, ..., %mm3 not supported by gcc 2.7.2.3 or egcs 1.1 */
: "%mm0", "%mm1" // clobber list
+@@ -4529,8 +4533,7 @@
+ : "0" (bpp), // eax // input regs
+ "1" (row) // edi
+
+- : "%ebx", "%ecx", "%edx" // clobber list
+- , "%esi"
++ : "%esi", "%ecx", "%edx" // clobber list
+
+ #if 0 /* MMX regs (%mm0, etc.) not supported by gcc 2.7.2.3 or egcs 1.1 */
+ , "%mm0", "%mm1", "%mm2", "%mm3"
+@@ -5034,7 +5037,10 @@
+ "1" (prev_row), // esi
+ "2" (row) // edi
+
+- : "%eax", "%ebx", "%ecx" // clobber list (no input regs!)
++ : "%eax", "%ecx" // clobber list (no input regs!)
++#ifndef __PIC__
++ , "%ebx"
++#endif
+
+ #if 0 /* MMX regs (%mm0, etc.) not supported by gcc 2.7.2.3 or egcs 1.1 */
+ , "%mm0", "%mm1", "%mm2", "%mm3"