]> git.eshelyaron.com Git - emacs.git/commitdiff
(main) [PROFILING]: Enable also for __MINGW32__.
authorEli Zaretskii <eliz@gnu.org>
Fri, 26 May 2006 18:45:09 +0000 (18:45 +0000)
committerEli Zaretskii <eliz@gnu.org>
Fri, 26 May 2006 18:45:09 +0000 (18:45 +0000)
[__MINGW32__]: MinGW-specific declaration of `etext'.

src/emacs.c

index e02a586b31e4d8d482572ed9455ac4b1d5481d0a..1e817112f4876fc42b9467f68eff4782e041a6da 100644 (file)
@@ -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 ();