]> Cypherpunks repositories - gostls13.git/commitdiff
add cov, prof to default build; clean up compiler warnings
authorRuss Cox <rsc@golang.org>
Fri, 14 Nov 2008 18:57:48 +0000 (10:57 -0800)
committerRuss Cox <rsc@golang.org>
Fri, 14 Nov 2008 18:57:48 +0000 (10:57 -0800)
R=r
DELTA=8  (1 added, 0 deleted, 7 changed)
OCL=19245
CL=19245

src/cmd/cc/cc.h
src/cmd/clean.bash
src/cmd/make.bash
src/cmd/prof/main.c
src/lib/reflect/typestring.c
src/runtime/runtime.c

index b4537559475964004889d9dbf710c6dfee1d684b..eefe5bed9e78f88f76f3c2cd73c77e73b08d2d99 100644 (file)
@@ -61,7 +61,7 @@ typedef       struct  Bits    Bits;
 #define        NTERM           10
 #define        MAXALIGN        7
 
-#define        SIGN(n)         ((vlong)1<<(n-1))
+#define        SIGN(n)         ((uvlong)1<<(n-1))
 #define        MASK(n)         (SIGN(n)|(SIGN(n)-1))
 
 #define        BITS    5
index 14151d86d6e4c53717eb368d94d9eae1acf6c9df..41f4917d9e5a46167b1b3954736de4fcc9071a50 100644 (file)
@@ -3,7 +3,7 @@
 # Use of this source code is governed by a BSD-style
 # license that can be found in the LICENSE file.
 
-for i in 6l 6a 6c 6g gc cc ar db nm blyacc acid
+for i in 6l 6a 6c 6g gc cc ar db nm blyacc acid cov prof
 do
        cd $i
        make clean
index 103b17fa6f5188e7ad96e12c1a7280970066b5ca..980659ff72763a3124cc69ab37075749c87a224d 100644 (file)
@@ -12,7 +12,7 @@ bash mkenam
 make enam.o
 cd ..
 
-for i in cc 6l 6a 6c gc 6g ar db nm blyacc acid
+for i in cc 6l 6a 6c gc 6g ar db nm blyacc acid cov prof
 do
        echo; echo; echo %%%% making $i %%%%; echo
        cd $i
index a4223e75a8cb2e088c400db9a7cd5964ed62aee8..c4380b9b38b3d6ee7e96b6af37aec7fced3415fb 100644 (file)
@@ -321,13 +321,13 @@ main(int argc, char *argv[])
                collapse = 0;
                break;
        case 'd':
-               delta_msec = atoi(EARGF(Usage));
+               delta_msec = atoi(EARGF(Usage()));
                break;
        case 't':
-               total_sec = atoi(EARGF(Usage));
+               total_sec = atoi(EARGF(Usage()));
                break;
        case 'p':
-               pid = atoi(EARGF(Usage));
+               pid = atoi(EARGF(Usage()));
                break;
        case 'f':
                functions = 1;
index a5e6398ad369802eda6f280a82a71e95aebae2df..07144b3e06ec2cea8dcd8b685a23c86decef9f78 100644 (file)
@@ -4,7 +4,7 @@
 
 extern char gotypestrings[];   // really a go String, but we don't have the definition here
 
-void FLUSH(void *v) { }
+void FLUSH(void*) { }
 
 void reflect·typestrings(void *s) {
        s = gotypestrings;
index ea2c432396401f64268880e954d200dbaf38682d..766f16f6d486bb6d8f21ce6a792e5db7b1690476 100644 (file)
@@ -674,6 +674,7 @@ memcopy(uint32 s, void *a, void *b)
 static uint64
 stringhash(uint32 s, string *a)
 {
+       USED(s);
        return memhash((*a)->len, (*a)->str);
 }