1
0
mirror of https://github.com/golang/go synced 2024-11-22 23:50:03 -07:00

add cov, prof to default build; clean up compiler warnings

R=r
DELTA=8  (1 added, 0 deleted, 7 changed)
OCL=19245
CL=19245
This commit is contained in:
Russ Cox 2008-11-14 10:57:48 -08:00
parent 7832ab5ba0
commit f8b20e4083
6 changed files with 8 additions and 7 deletions

View 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

View 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

View 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

View 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;

View 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;

View 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);
}