diff options
| author | Karoly Lorentey | 2006-06-12 07:27:12 +0000 |
|---|---|---|
| committer | Karoly Lorentey | 2006-06-12 07:27:12 +0000 |
| commit | 476e9367ec1f440aa23904b7bc482ea4a3b8041c (patch) | |
| tree | 4f7f5a5e9a6668f908834bb6e216c8fa3727d4b3 /src/emacs.c | |
| parent | a13f8f50d4cc544d3bbfa78568e82ce09e68bded (diff) | |
| parent | 6b519504c3297595101628e823e72c91e562ab45 (diff) | |
| download | emacs-476e9367ec1f440aa23904b7bc482ea4a3b8041c.tar.gz emacs-476e9367ec1f440aa23904b7bc482ea4a3b8041c.zip | |
Merged from emacs@sv.gnu.org.
Patches applied:
* emacs@sv.gnu.org/emacs--devo--0--patch-294
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-295
Merge from gnus--rel--5.10
* emacs@sv.gnu.org/emacs--devo--0--patch-296
Update from CVS: admin/FOR-RELEASE: Update refcard section.
* emacs@sv.gnu.org/emacs--devo--0--patch-297
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-298
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-299
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-300
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-301
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-302
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-303
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-304
Update from CVS
* emacs@sv.gnu.org/gnus--rel--5.10--patch-103
Update from CVS
* emacs@sv.gnu.org/gnus--rel--5.10--patch-104
Update from CVS
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-570
Diffstat (limited to 'src/emacs.c')
| -rw-r--r-- | src/emacs.c | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/src/emacs.c b/src/emacs.c index ac6bf57c2cd..530f008270c 100644 --- a/src/emacs.c +++ b/src/emacs.c | |||
| @@ -1753,16 +1753,21 @@ main (argc, argv | |||
| 1753 | #endif | 1753 | #endif |
| 1754 | } | 1754 | } |
| 1755 | 1755 | ||
| 1756 | /* Set up for profiling. This is known to work on FreeBSD and | 1756 | /* Set up for profiling. This is known to work on FreeBSD, |
| 1757 | GNU/Linux. It might work on some other systems too. Give it a | 1757 | GNU/Linux and MinGW. It might work on some other systems too. |
| 1758 | try and tell us if it works on your system. To compile for | 1758 | Give it a try and tell us if it works on your system. To compile |
| 1759 | profiling use something like `make CFLAGS="-pg -g -O -DPROFILING=1'. */ | 1759 | for profiling use something like: |
| 1760 | #if defined (__FreeBSD__) || defined (__linux) | 1760 | `make CFLAGS="-pg -g -O -DPROFILING=1'. */ |
| 1761 | #if defined (__FreeBSD__) || defined (GNU_LINUX) || defined(__MINGW32__) | ||
| 1761 | #ifdef PROFILING | 1762 | #ifdef PROFILING |
| 1762 | if (initialized) | 1763 | if (initialized) |
| 1763 | { | 1764 | { |
| 1764 | extern void _mcleanup (); | 1765 | extern void _mcleanup (); |
| 1766 | #ifdef __MINGW32__ | ||
| 1767 | extern unsigned char etext asm ("etext"); | ||
| 1768 | #else | ||
| 1765 | extern char etext; | 1769 | extern char etext; |
| 1770 | #endif | ||
| 1766 | extern void safe_bcopy (); | 1771 | extern void safe_bcopy (); |
| 1767 | extern void dump_opcode_frequencies (); | 1772 | extern void dump_opcode_frequencies (); |
| 1768 | 1773 | ||
| @@ -2235,7 +2240,7 @@ You must run Emacs in batch mode in order to dump it. */) | |||
| 2235 | if (! noninteractive) | 2240 | if (! noninteractive) |
| 2236 | error ("Dumping Emacs works only in batch mode"); | 2241 | error ("Dumping Emacs works only in batch mode"); |
| 2237 | 2242 | ||
| 2238 | #ifdef __linux__ | 2243 | #ifdef GNU_LINUX |
| 2239 | if (heap_bss_diff > MAX_HEAP_BSS_DIFF) | 2244 | if (heap_bss_diff > MAX_HEAP_BSS_DIFF) |
| 2240 | { | 2245 | { |
| 2241 | fprintf (stderr, "**************************************************\n"); | 2246 | fprintf (stderr, "**************************************************\n"); |
| @@ -2247,7 +2252,7 @@ You must run Emacs in batch mode in order to dump it. */) | |||
| 2247 | fprintf (stderr, "exec-shield in etc/PROBLEMS for more information.\n"); | 2252 | fprintf (stderr, "exec-shield in etc/PROBLEMS for more information.\n"); |
| 2248 | fprintf (stderr, "**************************************************\n"); | 2253 | fprintf (stderr, "**************************************************\n"); |
| 2249 | } | 2254 | } |
| 2250 | #endif /* __linux__ */ | 2255 | #endif /* GNU_LINUX */ |
| 2251 | 2256 | ||
| 2252 | /* Bind `command-line-processed' to nil before dumping, | 2257 | /* Bind `command-line-processed' to nil before dumping, |
| 2253 | so that the dumped Emacs will process its command line | 2258 | so that the dumped Emacs will process its command line |