Skip to content

Commit

Permalink
Fix obstack* on i?86
Browse files Browse the repository at this point in the history
obstack calls several callbacks, so on i?86 it'd better be compiled
without -mpreferred-stack-boundary=2, otherwise the callbacks are called
with misaligned stack.
  • Loading branch information
Jakub Jelinek authored and Ulrich Drepper committed Jul 31, 2009
1 parent 5b938b2 commit 1877ea1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2009-07-31 Jakub Jelinek <jakub@redhat.com>

* malloc/Makefile (CFLAGS-obstack.c): Add $(uses-callbacks).

2009-07-30 Ulrich Drepper <drepper@redhat.com>

* sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: New file.
Expand Down
1 change: 1 addition & 0 deletions malloc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ $(objpfx)memusagestat: $(memusagestat-modules:%=$(objpfx)%.o)
include ../Rules

CFLAGS-mcheck-init.c = $(PIC-ccflag)
CFLAGS-obstack.c = $(uses-callbacks)

$(objpfx)libmcheck.a: $(objpfx)mcheck-init.o
-rm -f $@
Expand Down

0 comments on commit 1877ea1

Please sign in to comment.