r1150 - in branches/unified-sdl: . code/sys

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sun Sep 2 15:57:01 EDT 2007


Author: tma
Date: 2007-09-02 15:57:01 -0400 (Sun, 02 Sep 2007)
New Revision: 1150

Modified:
   branches/unified-sdl/Makefile
   branches/unified-sdl/code/sys/sys_main.c
   branches/unified-sdl/code/sys/sys_win32.c
Log:
* Fix windows build
* Send Sys_SigHandler output to stderr, not stdout
* Don't -fomit-frame-pointer on MinGW due to a crash on an SJLJ; smells like a
  compiler bug, but the same code worked before SDL was introduced.. hmm..


Modified: branches/unified-sdl/Makefile
===================================================================
--- branches/unified-sdl/Makefile	2007-09-02 16:06:47 UTC (rev 1149)
+++ branches/unified-sdl/Makefile	2007-09-02 19:57:01 UTC (rev 1150)
@@ -425,8 +425,9 @@
     BASE_CFLAGS += -DUSE_CODEC_VORBIS=1
   endif
 
-  OPTIMIZE = -O3 -march=i586 -fomit-frame-pointer -ffast-math -falign-loops=2 \
-    -funroll-loops -falign-jumps=2 -falign-functions=2 -fstrength-reduce
+  OPTIMIZE = -O3 -march=i586 -fno-omit-frame-pointer -ffast-math \
+    -falign-loops=2 -funroll-loops -falign-jumps=2 -falign-functions=2 \
+    -fstrength-reduce
 
   HAVE_VM_COMPILED = true
 

Modified: branches/unified-sdl/code/sys/sys_main.c
===================================================================
--- branches/unified-sdl/code/sys/sys_main.c	2007-09-02 16:06:47 UTC (rev 1149)
+++ branches/unified-sdl/code/sys/sys_main.c	2007-09-02 19:57:01 UTC (rev 1150)
@@ -695,12 +695,13 @@
 
 	if( signalcaught )
 	{
-		printf( "DOUBLE SIGNAL FAULT: Received signal %d, exiting...\n", signal );
+		fprintf( stderr, "DOUBLE SIGNAL FAULT: Received signal %d, exiting...\n",
+			signal );
 	}
 	else
 	{
 		signalcaught = qtrue;
-		printf( "Received signal %d, exiting...\n", signal );
+		fprintf( stderr, "Received signal %d, exiting...\n", signal );
 #ifndef DEDICATED
 		CL_Shutdown();
 #endif

Modified: branches/unified-sdl/code/sys/sys_win32.c
===================================================================
--- branches/unified-sdl/code/sys/sys_win32.c	2007-09-02 16:06:47 UTC (rev 1149)
+++ branches/unified-sdl/code/sys/sys_win32.c	2007-09-02 19:57:01 UTC (rev 1150)
@@ -81,7 +81,7 @@
 		{
 			if( GetLastError() != ERROR_ALREADY_EXISTS )
 			{
-				Com_Printf("Unable to create directory \"%s\"\n", path);
+				Com_Printf("Unable to create directory \"%s\"\n", homePath );
 				return NULL;
 			}
 		}




More information about the quake3-commits mailing list