There's a bug with gcc 4.4.1 and -O2 where srcp doesn't get the correct value after the first scanline. Ugh. SDL-1.2
authorSam Lantinga <slouken@libsdl.org>
Sun, 18 Oct 2009 23:18:28 +0000
branchSDL-1.2
changeset 4356 ab2dfac9d5c1
parent 4355 9b464226e541
child 4357 a10dac5858fe
There's a bug with gcc 4.4.1 and -O2 where srcp doesn't get the correct value after the first scanline. Ugh.
src/video/SDL_stretch.c
--- a/src/video/SDL_stretch.c	Sun Oct 18 17:31:37 2009 +0000
+++ b/src/video/SDL_stretch.c	Sun Oct 18 23:18:28 2009 +0000
@@ -37,7 +37,9 @@
 #if ((defined(_MFC_VER) && defined(_M_IX86)/* && !defined(_WIN32_WCE) still needed? */) || \
      defined(__WATCOMC__) || \
      (defined(__GNUC__) && defined(__i386__))) && SDL_ASSEMBLY_ROUTINES
-#define USE_ASM_STRETCH
+/* There's a bug with gcc 4.4.1 and -O2 where srcp doesn't get the correct
+ * value after the first scanline.  FIXME? */
+/*#define USE_ASM_STRETCH*/
 #endif
 
 #ifdef USE_ASM_STRETCH