Browse Source

gifnuss:


			
			
				rocklinux
			
			
		
Sebastian Knapp 18 years ago
parent
commit
919784896f
2 changed files with 43 additions and 1 deletions
  1. +1
    -1
      package/base/ccbench/ccbench.desc
  2. +42
    -0
      package/base/ccbench/gcc40.patch

+ 1
- 1
package/base/ccbench/ccbench.desc

@ -34,7 +34,7 @@
[L] GPL
[S] Stable
[V] 0.2
[V] 0.2 1
[P] X -?---5---9 102.100
[D] 1220906199 ccbench-0.2.tar.bz2 http://www.rocklinux.net/people/clifford/ccbench/

+ 42
- 0
package/base/ccbench/gcc40.patch

@ -0,0 +1,42 @@
diff -ruN ccbench-0.2/ccbench ccbench-0.2.1/ccbench
--- ccbench-0.2/ccbench 2006-10-08 00:56:54.000000000 +0200
+++ ccbench-0.2.1/ccbench 2006-10-08 00:37:47.000000000 +0200
@@ -61,7 +61,7 @@
try "" -O2 -O3
try "" -march={i386,i486,i586,i686,pentium{-mmx,2,3,4}} \
- -march={k6,k6-2,k6-3,athlon,athlon-{tbird,4,xp,mp}}
+ -march={k6,k6-2,k6-3,athlon,athlon-{tbird,4,xp,mp},k8}
try "" -fforce-addr
try "" -fomit-frame-pointer
try "" -finline-functions
diff -ruN ccbench-0.2/test_bubble.c ccbench-0.2.1/test_bubble.c
--- ccbench-0.2/test_bubble.c 2006-10-08 00:56:54.000000000 +0200
+++ ccbench-0.2.1/test_bubble.c 2006-10-08 00:02:37.000000000 +0200
@@ -8,7 +8,7 @@
* is often found in application programs.
*/
-void bubblesort(unsigned char * data)
+void bubblesort(char * data)
{
int finished=0;
int counter,buf;
@@ -26,7 +26,7 @@
void test_bubblesort()
{
- unsigned char buf[400];
+ char buf[400];
int c, c2;
timer_start(CONTEXT_LOCAL);
diff -ruN ccbench-0.2/test_builtin.c ccbench-0.2.1/test_builtin.c
--- ccbench-0.2/test_builtin.c 2006-10-08 00:56:54.000000000 +0200
+++ ccbench-0.2.1/test_builtin.c 2006-10-08 00:06:29.000000000 +0200
@@ -1,3 +1,5 @@
+#include <strings.h>
+
#include "bench.h"
int test_builtin_ffs(int rc)

Loading…
Cancel
Save