Mercurial > emacs
diff src/emacs.c @ 70965:80022e83a5c2
(main) [PROFILING]: Enable also for __MINGW32__.
[__MINGW32__]: MinGW-specific declaration of `etext'.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Fri, 26 May 2006 18:45:09 +0000 |
parents | 77206b6b6ec5 |
children | 31f876da25bf 46b1096093f5 a8190f7e546e |
line wrap: on
line diff
--- a/src/emacs.c Fri May 26 17:39:06 2006 +0000 +++ b/src/emacs.c Fri May 26 18:45:09 2006 +0000 @@ -1749,16 +1749,21 @@ #endif } - /* Set up for profiling. This is known to work on FreeBSD and - GNU/Linux. It might work on some other systems too. Give it a - try and tell us if it works on your system. To compile for - profiling use something like `make CFLAGS="-pg -g -O -DPROFILING=1'. */ -#if defined (__FreeBSD__) || defined (GNU_LINUX) + /* Set up for profiling. This is known to work on FreeBSD, + GNU/Linux and MinGW. It might work on some other systems too. + Give it a try and tell us if it works on your system. To compile + for profiling use something like: + `make CFLAGS="-pg -g -O -DPROFILING=1'. */ +#if defined (__FreeBSD__) || defined (GNU_LINUX) || defined(__MINGW32__) #ifdef PROFILING if (initialized) { extern void _mcleanup (); +#ifdef __MINGW32__ + extern unsigned char etext asm ("etext"); +#else extern char etext; +#endif extern void safe_bcopy (); extern void dump_opcode_frequencies ();