emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r107991: Fix GC_MALLOC_CHECK debuggin


From: Paul Eggert
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r107991: Fix GC_MALLOC_CHECK debugging output on 64-bit hosts.
Date: Sun, 22 Apr 2012 00:50:17 -0700
User-agent: Bazaar (2.3.1)

------------------------------------------------------------
revno: 107991
committer: Paul Eggert <address@hidden>
branch nick: trunk
timestamp: Sun 2012-04-22 00:50:17 -0700
message:
  Fix GC_MALLOC_CHECK debugging output on 64-bit hosts.
  
  * alloc.c (emacs_blocked_malloc) [GC_MALLOC_CHECK]:
  Do not assume ptrdiff_t is the same width as 'int'.
modified:
  src/ChangeLog
  src/alloc.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2012-04-22 07:41:30 +0000
+++ b/src/ChangeLog     2012-04-22 07:50:17 +0000
@@ -1,5 +1,9 @@
 2012-04-22  Paul Eggert  <address@hidden>
 
+       Fix GC_MALLOC_CHECK debugging output on 64-bit hosts.
+       * alloc.c (emacs_blocked_malloc) [GC_MALLOC_CHECK]:
+       Do not assume ptrdiff_t is the same width as 'int'.
+
        * alloc.c: Handle unusual debugging option combinations.
        (GC_CHECK_MARKED_OBJECTS): Undef if ! GC_MARK_STACK,
        since the two debugging options are incompatible.

=== modified file 'src/alloc.c'
--- a/src/alloc.c       2012-04-22 07:41:30 +0000
+++ b/src/alloc.c       2012-04-22 07:50:17 +0000
@@ -1314,7 +1314,7 @@
       {
        fprintf (stderr, "Malloc returned %p which is already in use\n",
                 value);
-       fprintf (stderr, "Region in use is %p...%p, %u bytes, type %d\n",
+       fprintf (stderr, "Region in use is %p...%p, %td bytes, type %d\n",
                 m->start, m->end, (char *) m->end - (char *) m->start,
                 m->type);
        abort ();


reply via email to

[Prev in Thread] Current Thread [Next in Thread]