Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
dff45157
Commit
dff45157
authored
Mar 15, 2011
by
Paul Eggert
Browse files
* alloc.c (mark_stack): Move local variables into the #ifdef region where
they're used.
parent
ae35e756
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
src/ChangeLog
src/ChangeLog
+2
-0
src/alloc.c
src/alloc.c
+8
-6
No files found.
src/ChangeLog
View file @
dff45157
...
...
@@ -3,6 +3,8 @@
* alloc.c (check_cons_list): Do not define unless GC_CHECK_CONS_LIST.
(Fmake_vector, Fvector, Fmake_byte_code, Fgarbage_collect):
Rename locals to avoid shadowing.
(mark_stack): Move local variables into the #ifdef region where
they're used.
* lisp.h (check_cons_list): Declare if GC_CHECK_CONS_LIST; this
avoids undefined behavior in theory.
src/alloc.c
View file @
dff45157
...
...
@@ -4312,12 +4312,6 @@ static void
mark_stack
(
void
)
{
int
i
;
/* jmp_buf may not be aligned enough on darwin-ppc64 */
union
aligned_jmpbuf
{
Lisp_Object
o
;
jmp_buf
j
;
}
j
;
volatile
int
stack_grows_down_p
=
(
char
*
)
&
j
>
(
char
*
)
stack_base
;
void
*
end
;
#ifdef HAVE___BUILTIN_UNWIND_INIT
...
...
@@ -4327,6 +4321,14 @@ mark_stack (void)
__builtin_unwind_init
();
end
=
&
end
;
#else
/* not HAVE___BUILTIN_UNWIND_INIT */
#ifndef GC_SAVE_REGISTERS_ON_STACK
/* jmp_buf may not be aligned enough on darwin-ppc64 */
union
aligned_jmpbuf
{
Lisp_Object
o
;
jmp_buf
j
;
}
j
;
volatile
int
stack_grows_down_p
=
(
char
*
)
&
j
>
(
char
*
)
stack_base
;
#endif
/* This trick flushes the register windows so that all the state of
the process is contained in the stack. */
/* Fixme: Code in the Boehm GC suggests flushing (with `flushrs') is
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment