[llvm-commits] CVS: llvm-test/MultiSource/Benchmarks/Prolangs-C++/primes/Makefile primes.cpp

Chris Lattner lattner at cs.uiuc.edu
Mon Oct 4 20:40:50 PDT 2004



Changes in directory llvm-test/MultiSource/Benchmarks/Prolangs-C++/primes:

Makefile added (r1.1)
primes.cpp updated: 1.1 -> 1.2
---
Log message:

Make this compile and take a nontrivial amount of time


---
Diffs of the changes:  (+10 -2)

Index: llvm-test/MultiSource/Benchmarks/Prolangs-C++/primes/Makefile
diff -c /dev/null llvm-test/MultiSource/Benchmarks/Prolangs-C++/primes/Makefile:1.1
*** /dev/null	Mon Oct  4 22:40:49 2004
--- llvm-test/MultiSource/Benchmarks/Prolangs-C++/primes/Makefile	Mon Oct  4 22:40:39 2004
***************
*** 0 ****
--- 1,7 ----
+ LEVEL = ../../../..
+ 
+ PROG     = primes
+ #LIBS  = -lstdc++
+ LDFLAGS = -lstdc++
+ include $(LEVEL)/MultiSource/Makefile.multisrc
+ 


Index: llvm-test/MultiSource/Benchmarks/Prolangs-C++/primes/primes.cpp
diff -u llvm-test/MultiSource/Benchmarks/Prolangs-C++/primes/primes.cpp:1.1 llvm-test/MultiSource/Benchmarks/Prolangs-C++/primes/primes.cpp:1.2
--- llvm-test/MultiSource/Benchmarks/Prolangs-C++/primes/primes.cpp:1.1	Mon Oct  4 15:01:15 2004
+++ llvm-test/MultiSource/Benchmarks/Prolangs-C++/primes/primes.cpp	Mon Oct  4 22:40:39 2004
@@ -24,14 +24,15 @@
 	int out();
 	filter(item *src, int f) : item (src) {factor = f;}
 };
-main() {
+
+int main() {
 	counter c(2);
 	sieve s(&c);
 	int next;
 	do {
 		next = s.out();
 		printf("%d ",next);
-	} while (next < 61);
+	} while (next < 100001);
 	printf ("\n");
 }
 int sieve::out() {






More information about the llvm-commits mailing list