mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-26 07:11:34 -08:00
(main) [PROFILING]: Enable also for __MINGW32__.
[__MINGW32__]: MinGW-specific declaration of `etext'.
This commit is contained in:
parent
bd93e3e1aa
commit
ecf783fada
1 changed files with 10 additions and 5 deletions
15
src/emacs.c
15
src/emacs.c
|
|
@ -1749,16 +1749,21 @@ main (argc, argv
|
|||
#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 ();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue