[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gcc-patches
Subject:    benchmark suite, gnu-awk dependencies
From:       Marc Espie <Marc.Espie () liafa ! jussieu ! fr>
Date:       1999-01-30 0:32:17
[Download RAW message or body]

- non gnu awk does not like format specifiers it doesn't grok in printf.
- it also does not like to find '^' in the middle of a regular expression.

Index: benchlib.sh
===================================================================
RCS file: /egcs/carton/cvsfiles/benchmarks/benchlib.sh,v
retrieving revision 1.17
diff -u -r1.17 benchlib.sh
--- benchlib.sh	1999/01/29 12:48:48	1.17
+++ benchlib.sh	1999/01/30 00:29:37
@@ -81,7 +81,7 @@
        /^CATEGORY/ {category=0}
        $0=="CATEGORY '"$1"'" {category=1}
        $0=="TEST '"$2"'" && category==1 {test=1}
-       /^'"R$3"':'"$4"':/ && category==1 && test == 1 {found=1;printf "%3i%",'"$5"'*100/$3+0.5;exit 0}
+       /^'"R$3"':'"$4"':/ && category==1 && test == 1 {found=1;printf "%3i%%",'"$5"'*100/$3+0.5;exit 0}
        END {if (found==0) print "---%"} ' <$cmpfile
 }
 
Index: nongpl/stepanov.C
===================================================================
RCS file: /egcs/carton/cvsfiles/benchmarks/nongpl/stepanov.C,v
retrieving revision 1.4
diff -u -r1.4 stepanov.C
--- stepanov.C	1999/01/23 12:18:46	1.4
+++ stepanov.C	1999/01/30 00:29:41
@@ -326,9 +326,9 @@
   TEST (test(rDPb, rDPe, D), "Double, Pointer, Iterator");
   
   TEST (test(rrdpb, rrdpe, d), "Iterator**2");
-  TEST (test(rrDpb, rrDpe, D), "Double, Iterator^2");
-  TEST (test(rrdPb, rrdPe, d), "Pointer, Iterator^2");
-  TEST (test(rrDPb, rrDPe, D), "Double, Pointer, Iterator^2");
+  TEST (test(rrDpb, rrDpe, D), "Double, Iterator\\^2");
+  TEST (test(rrdPb, rrdPe, d), "Pointer, Iterator\\^2");
+  TEST (test(rrDPb, rrDPe, D), "Double, Pointer, Iterator\\^2");
 END_MAIN
 
 
-- 
	Marc Espie		
|anime, sf, juggling, unicycle, acrobatics, comics...
|AmigaOS, OpenBSD, C++, perl, Icon, PostScript...
| `real programmers don't die, they just get out of beta'

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic