* profile/profil.c: Update copyright info.
* profile/profil.h: Likewise. * profile/gcrt0.c: Likewise. * profile/profil.h (PROFADDR): Cast idx to unsigned long long to avoid overflow. * profile/gmon.c: Define bzero as memset if mingw32. (monstartup): Use it.
This commit is contained in:
		| @@ -1,3 +1,22 @@ | |||||||
|  | 2002-01-25  Danny Smith  <dannysmith@users.sourceforge.net> | ||||||
|  |  | ||||||
|  | 	* profile/profil.c: Update copyright info. | ||||||
|  | 	* profile/profil.h: Likewise. | ||||||
|  | 	* profile/gcrt0.c.c: Likewise. | ||||||
|  |  | ||||||
|  | 2002-01-25  Pascal Obry  <obry@gnat.com> | ||||||
|  |  | ||||||
|  | 	* profile/profil.h (PROFADDR): Cast idx to unsigned long long to | ||||||
|  | 	avoid overflow. | ||||||
|  | 	* profile/gmon.c: Define bzero as memset if mingw32. | ||||||
|  | 	(monstartup): Use it. | ||||||
|  |  | ||||||
|  | 2002-01-25  Danny Smith  <dannysmith@users.sourceforge.net> | ||||||
|  |  | ||||||
|  | 	* profile/profil.c: Update copyright info. | ||||||
|  | 	* profile/profil.h: Likewise. | ||||||
|  | 	* profile/gcrt0.c.c: Likewise. | ||||||
|  |  | ||||||
| 2002-01-25  Danny Smith  <dannysmith@users.sourceforge.net>  | 2002-01-25  Danny Smith  <dannysmith@users.sourceforge.net>  | ||||||
|  |  | ||||||
| 	* include/tchar.h (_TCHAR): Add missing ;. | 	* include/tchar.h (_TCHAR): Add missing ;. | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| /* gcrt0.c | /* gcrt0.c | ||||||
|  |  | ||||||
|    Copyright 1998 Cygnus Solutions. |    Copyright 1998, 1999, 2000, 2001, 2002 Red Hat, Inc. | ||||||
|  |  | ||||||
| This file is part of Cygwin. | This file is part of Cygwin. | ||||||
|  |  | ||||||
|   | |||||||
| @@ -55,6 +55,10 @@ static char rcsid[] = "$OpenBSD: gmon.c,v 1.8 1997/07/23 21:11:27 kstailey Exp $ | |||||||
| /* XXX needed? */ | /* XXX needed? */ | ||||||
| //extern char *minbrk __asm ("minbrk"); | //extern char *minbrk __asm ("minbrk"); | ||||||
|  |  | ||||||
|  | #ifdef __MINGW32__ | ||||||
|  | #define bzero(ptr,size) memset (ptr, 0, size); | ||||||
|  | #endif | ||||||
|  |  | ||||||
| struct gmonparam _gmonparam = { GMON_PROF_OFF }; | struct gmonparam _gmonparam = { GMON_PROF_OFF }; | ||||||
|  |  | ||||||
| static int	s_scale; | static int	s_scale; | ||||||
| @@ -102,9 +106,10 @@ monstartup(lowpc, highpc) | |||||||
| 		ERR("monstartup: out of memory\n"); | 		ERR("monstartup: out of memory\n"); | ||||||
| 		return; | 		return; | ||||||
| 	} | 	} | ||||||
| #ifdef notdef |  | ||||||
|  | 	/* zero out cp as value will be added there */ | ||||||
| 	bzero(cp, p->kcountsize + p->fromssize + p->tossize); | 	bzero(cp, p->kcountsize + p->fromssize + p->tossize); | ||||||
| #endif |  | ||||||
| 	p->tos = (struct tostruct *)cp; | 	p->tos = (struct tostruct *)cp; | ||||||
| 	cp += p->tossize; | 	cp += p->tossize; | ||||||
| 	p->kcount = (u_short *)cp; | 	p->kcount = (u_short *)cp; | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| /* profil.c -- win32 profil.c equivalent | /* profil.c -- win32 profil.c equivalent | ||||||
|  |  | ||||||
|    Copyright 1998 Cygnus Solutions. |    Copyright 1998, 1999, 2000, 2001, 2002 Red Hat, Inc. | ||||||
|  |  | ||||||
|    This file is part of Cygwin. |    This file is part of Cygwin. | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| /* profil.h: gprof profiling header file | /* profil.h: gprof profiling header file | ||||||
|  |  | ||||||
|    Copyright 1998 Cygnus Solutions. |    Copyright 1998, 1999, 2000, 2001, 2002 Red Hat, Inc. | ||||||
|  |  | ||||||
| This file is part of Cygwin. | This file is part of Cygwin. | ||||||
|  |  | ||||||
| @@ -29,7 +29,9 @@ details. */ | |||||||
|  |  | ||||||
| /* convert an index into an address */ | /* convert an index into an address */ | ||||||
| #define PROFADDR(idx, base, scale)		\ | #define PROFADDR(idx, base, scale)		\ | ||||||
| 	((base) + ((((idx) << 16) / (scale)) << 1)) |   ((base)					\ | ||||||
|  |    + ((((unsigned long long)(idx) << 16)	\ | ||||||
|  |        / (unsigned long long)(scale)) << 1)) | ||||||
|  |  | ||||||
| /* convert a bin size into a scale */ | /* convert a bin size into a scale */ | ||||||
| #define PROFSCALE(range, bins)		(((bins) << 16) / ((range) >> 1)) | #define PROFSCALE(range, bins)		(((bins) << 16) / ((range) >> 1)) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user