This is needed for gcc -Os -flto on x86-64 (Bug#28213).
* src/emacs.c (main): Align stack-bottom variable as a pointer,
since mark_memory requires this.
int
main (int argc, char **argv)
{
- char stack_bottom_variable;
+ /* Variable near the bottom of the stack, and aligned appropriately
+ for pointers. */
+ void *stack_bottom_variable;
+
bool do_initial_setlocale;
bool dumping;
int skip_args = 0;
char *original_pwd = 0;
/* Record (approximately) where the stack begins. */
- stack_bottom = &stack_bottom_variable;
+ stack_bottom = (char *) &stack_bottom_variable;
#ifndef CANNOT_DUMP
dumping = !initialized && (strcmp (argv[argc - 1], "dump") == 0