[Midnightbsd-cvs] mports [22344] trunk/games/quake3/files: add clang fixes

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sat Feb 25 11:46:25 EST 2017


Revision: 22344
          http://svnweb.midnightbsd.org/mports/?rev=22344
Author:   laffer1
Date:     2017-02-25 11:46:25 -0500 (Sat, 25 Feb 2017)
Log Message:
-----------
add clang fixes

Added Paths:
-----------
    trunk/games/quake3/files/patch-code-Construct
    trunk/games/quake3/files/patch-code-botlib-linux-i386.mak
    trunk/games/quake3/files/patch-code-bspc-Makefile
    trunk/games/quake3/files/patch-code-bspc-linux-i386.mak
    trunk/games/quake3/files/patch-code-qcommon-vm_x86.c

Added: trunk/games/quake3/files/patch-code-Construct
===================================================================
--- trunk/games/quake3/files/patch-code-Construct	                        (rev 0)
+++ trunk/games/quake3/files/patch-code-Construct	2017-02-25 16:46:25 UTC (rev 22344)
@@ -0,0 +1,11 @@
+--- code/Construct.orig	2013-10-18 02:05:36.000000000 +0300
++++ code/Construct	2013-10-18 02:05:53.000000000 +0300
+@@ -237,7 +237,7 @@
+ }
+ else
+ {
+-  $BASE_CFLAGS = $COMMON_CFLAGS . '-DNDEBUG -O6 -mcpu=pentiumpro -march=pentium -fomit-frame-pointer -ffast-math -malign-loops=2 -malign-jumps=2 -malign-functions=2 -fno-strict-aliasing -fstrength-reduce ';
++  $BASE_CFLAGS = $COMMON_CFLAGS . '-DNDEBUG -O2 -mcpu=pentiumpro -march=pentium -fomit-frame-pointer -ffast-math -malign-loops=2 -malign-jumps=2 -malign-functions=2 -fno-strict-aliasing -fstrength-reduce ';
+ 	$BSPC_BASE_CFLAGS = $BASE_CFLAGS . '-DLINUX -DBSPC -Dstricmp=strcasecmp ';
+ }
+ 


Property changes on: trunk/games/quake3/files/patch-code-Construct
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/games/quake3/files/patch-code-botlib-linux-i386.mak
===================================================================
--- trunk/games/quake3/files/patch-code-botlib-linux-i386.mak	                        (rev 0)
+++ trunk/games/quake3/files/patch-code-botlib-linux-i386.mak	2017-02-25 16:46:25 UTC (rev 22344)
@@ -0,0 +1,11 @@
+--- code/botlib/linux-i386.mak.orig	2013-10-18 02:02:20.000000000 +0300
++++ code/botlib/linux-i386.mak	2013-10-18 02:02:35.000000000 +0300
+@@ -8,7 +8,7 @@
+ BASE_CFLAGS=-Dstricmp=strcasecmp
+ 
+ #use these cflags to optimize it
+-CFLAGS=$(BASE_CFLAGS) -m486 -O6 -ffast-math -funroll-loops \
++CFLAGS=$(BASE_CFLAGS) -m486 -O2 -ffast-math -funroll-loops \
+ 	-fomit-frame-pointer -fexpensive-optimizations -malign-loops=2 \
+ 	-malign-jumps=2 -malign-functions=2
+ #use these when debugging 


Property changes on: trunk/games/quake3/files/patch-code-botlib-linux-i386.mak
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/games/quake3/files/patch-code-bspc-Makefile
===================================================================
--- trunk/games/quake3/files/patch-code-bspc-Makefile	                        (rev 0)
+++ trunk/games/quake3/files/patch-code-bspc-Makefile	2017-02-25 16:46:25 UTC (rev 22344)
@@ -0,0 +1,11 @@
+--- code/bspc/Makefile.orig	2013-10-18 02:04:52.000000000 +0300
++++ code/bspc/Makefile	2013-10-18 02:05:03.000000000 +0300
+@@ -12,7 +12,7 @@
+ BASE_CFLAGS=-Dstricmp=strcasecmp
+ 
+ #use these cflags to optimize it
+-CFLAGS=$(BASE_CFLAGS) -m486 -O6 -ffast-math -funroll-loops \
++CFLAGS=$(BASE_CFLAGS) -m486 -O2 -ffast-math -funroll-loops \
+ 	-fomit-frame-pointer -fexpensive-optimizations -malign-loops=2 \
+ 	-malign-jumps=2 -malign-functions=2 -DLINUX -DBSPC
+ #use these when debugging 


Property changes on: trunk/games/quake3/files/patch-code-bspc-Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/games/quake3/files/patch-code-bspc-linux-i386.mak
===================================================================
--- trunk/games/quake3/files/patch-code-bspc-linux-i386.mak	                        (rev 0)
+++ trunk/games/quake3/files/patch-code-bspc-linux-i386.mak	2017-02-25 16:46:25 UTC (rev 22344)
@@ -0,0 +1,11 @@
+--- code/bspc/linux-i386.mak.orig	2013-10-18 02:04:04.000000000 +0300
++++ code/bspc/linux-i386.mak	2013-10-18 02:04:18.000000000 +0300
+@@ -8,7 +8,7 @@
+ BASE_CFLAGS=-Dstricmp=strcasecmp
+ 
+ #use these cflags to optimize it
+-CFLAGS=$(BASE_CFLAGS) -m486 -O6 -ffast-math -funroll-loops \
++CFLAGS=$(BASE_CFLAGS) -m486 -O2 -ffast-math -funroll-loops \
+ 	-fomit-frame-pointer -fexpensive-optimizations -malign-loops=2 \
+ 	-malign-jumps=2 -malign-functions=2 -DLINUX -DBSPC
+ #use these when debugging 


Property changes on: trunk/games/quake3/files/patch-code-bspc-linux-i386.mak
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/games/quake3/files/patch-code-qcommon-vm_x86.c
===================================================================
--- trunk/games/quake3/files/patch-code-qcommon-vm_x86.c	                        (rev 0)
+++ trunk/games/quake3/files/patch-code-qcommon-vm_x86.c	2017-02-25 16:46:25 UTC (rev 22344)
@@ -0,0 +1,11 @@
+--- code/qcommon/vm_x86.c.orig	2013-10-18 02:26:13.000000000 +0300
++++ code/qcommon/vm_x86.c	2013-10-18 02:26:30.000000000 +0300
+@@ -84,7 +84,7 @@
+ #endif // !_WIN32
+ 
+ 
+-static	int		callMask = 0; // bk001213 - init
++static	int __attribute__((used))		callMask = 0; // bk001213 - init
+ 
+ static	int	instruction, pass;
+ static	int	lastConst = 0;


Property changes on: trunk/games/quake3/files/patch-code-qcommon-vm_x86.c
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property


More information about the Midnightbsd-cvs mailing list