aboutsummaryrefslogtreecommitdiffstats
path: root/src/emacs.c
diff options
context:
space:
mode:
authorEli Zaretskii2006-05-26 18:45:09 +0000
committerEli Zaretskii2006-05-26 18:45:09 +0000
commitecf783fadafe5bb6ea3a80abfa6380703ce9b2dc (patch)
tree62f8da27f3a00cff5542a091a6b16fd97ef17722 /src/emacs.c
parentbd93e3e1aa80960b2c6f49faab96751f456aa6f9 (diff)
downloademacs-ecf783fadafe5bb6ea3a80abfa6380703ce9b2dc.tar.gz
emacs-ecf783fadafe5bb6ea3a80abfa6380703ce9b2dc.zip
(main) [PROFILING]: Enable also for __MINGW32__.
[__MINGW32__]: MinGW-specific declaration of `etext'.
Diffstat (limited to 'src/emacs.c')
-rw-r--r--src/emacs.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/emacs.c b/src/emacs.c
index e02a586b31e..1e817112f48 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -1749,16 +1749,21 @@ main (argc, argv
1749#endif 1749#endif
1750 } 1750 }
1751 1751
1752 /* Set up for profiling. This is known to work on FreeBSD and 1752 /* Set up for profiling. This is known to work on FreeBSD,
1753 GNU/Linux. It might work on some other systems too. Give it a 1753 GNU/Linux and MinGW. It might work on some other systems too.
1754 try and tell us if it works on your system. To compile for 1754 Give it a try and tell us if it works on your system. To compile
1755 profiling use something like `make CFLAGS="-pg -g -O -DPROFILING=1'. */ 1755 for profiling use something like:
1756#if defined (__FreeBSD__) || defined (GNU_LINUX) 1756 `make CFLAGS="-pg -g -O -DPROFILING=1'. */
1757#if defined (__FreeBSD__) || defined (GNU_LINUX) || defined(__MINGW32__)
1757#ifdef PROFILING 1758#ifdef PROFILING
1758 if (initialized) 1759 if (initialized)
1759 { 1760 {
1760 extern void _mcleanup (); 1761 extern void _mcleanup ();
1762#ifdef __MINGW32__
1763 extern unsigned char etext asm ("etext");
1764#else
1761 extern char etext; 1765 extern char etext;
1766#endif
1762 extern void safe_bcopy (); 1767 extern void safe_bcopy ();
1763 extern void dump_opcode_frequencies (); 1768 extern void dump_opcode_frequencies ();
1764 1769