diff options
author | kristerw <kristerw@pkgsrc.org> | 2002-12-07 20:59:52 +0000 |
---|---|---|
committer | kristerw <kristerw@pkgsrc.org> | 2002-12-07 20:59:52 +0000 |
commit | 050a85470595a63375089cd89bf57e7338363bd9 (patch) | |
tree | ae12ac28d74067938e6ad8bae0891b4ddcefb610 /emulators/xmame/patches | |
parent | fd4c74204b989365239fa986fcf8981db6783493 (diff) | |
download | pkgsrc-050a85470595a63375089cd89bf57e7338363bd9.tar.gz |
The workaround for gcc problems on sparc and arm was a bit too draconian.
Change it to only disable the macros that do massive unrolling (instead
of disable all optimization).
PKGREVISION++
Diffstat (limited to 'emulators/xmame/patches')
-rw-r--r-- | emulators/xmame/patches/patch-ad | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/emulators/xmame/patches/patch-ad b/emulators/xmame/patches/patch-ad new file mode 100644 index 00000000000..8868e2d5a46 --- /dev/null +++ b/emulators/xmame/patches/patch-ad @@ -0,0 +1,38 @@ +$NetBSD: patch-ad,v 1.3 2002/12/07 20:59:53 kristerw Exp $ +--- src/unix/video-drivers/blit.h.orig Sat Dec 7 03:00:00 2002 ++++ src/unix/video-drivers/blit.h Sat Dec 7 03:02:49 2002 +@@ -156,6 +156,7 @@ + + + ++#ifndef BROKEN_COMPILER + case 2: + #define SCALE_X(X) ((X)*2) + #ifdef INDIRECT +@@ -265,6 +266,7 @@ + #include "blit_core.h" + break; + ++#endif /* #ifndef BROKEN_COMPILER */ + #undef SCALE_X + #undef COPY_LINE2 + +@@ -503,6 +505,7 @@ + #define SCALE_Y(Y) (Y) + + /* 1x1 we don't do scanlines with 1x1 */ ++#ifndef BROKEN_COMPILER + case 0x00101: + case 0x10101: + #define COPY_LINE(SRC, END, DST) { COPY_LINE2(SRC, END, DST) } +@@ -958,6 +961,10 @@ + /* This is what happens when you give an assembly-language programmer + a C compiler. Thanks to td, of course. -JDL */ + ++#endif /* #ifndef BROKEN_COMPILER */ ++#undef COPY_LINE2 ++#undef SCALE_X ++#undef SCALE_Y + default: + + #ifdef INDIRECT |