* alignment problem allocating pure_float
@ 2003-01-10 15:25 b.gunreben
0 siblings, 0 replies; only message in thread
From: b.gunreben @ 2003-01-10 15:25 UTC (permalink / raw)
Cc: b.gunreben
Hi,
when comiling emacs on hppa-linux-gnu, I had the following error:
> LC_ALL=C ./temacs -batch -l loadup dump
...
Loading term/tty-colors...
make[1]: *** [emacs] Bus error
I found, that there is a problem in src/alloc.c, where pure_bytes_used becomes aligned
for pure_floats, but PUREBEG is only int alinged. So the resulting adress after
aligning pure_bytes_used to pure_float is still int aligned.
The emacs version I used is 21.2. I could fix this problem with the following diff:
# cat alloc_pure_float.patch
--- src/alloc.c 2003/01/02 16:39:01 1.1
+++ src/alloc.c 2003/01/02 16:41:01
@@ -3802,7 +3802,7 @@
#else
alignment = sizeof (struct Lisp_Float);
#endif
- pure_bytes_used = ALIGN (pure_bytes_used, alignment);
+ pure_bytes_used = (ALIGN (pure_bytes_used + (long) PUREBEG, alignment)) - (long)
PUREBEG;
}
nbytes = ALIGN (size, sizeof (EMACS_INT));
Please fix possible wrong linebreaks before applying. I can also send this patch as
attachement if needed.
Berthold
______________________________________________________________________________
Bequemer und billiger - SMS mit FreeMail verschicken! Mehr Information
unter: http://freemail.web.de/features/?mc=021147
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-01-10 15:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-10 15:25 alignment problem allocating pure_float b.gunreben
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).