Skip to content

Commit

Permalink
Fix MIPS32 frame-pointer forcing for more recent GCC.
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph Myers committed Jun 14, 2012
1 parent 7fe70b0 commit e525bc9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions ChangeLog.mips
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2012-06-14 Joseph Myers <joseph@codesourcery.com>

* sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
(FORCE_FRAME_POINTER): Assign result of alloca to a volatile
variable.

2012-06-01 Joseph Myers <joseph@codesourcery.com>

* sysdeps/mips/mips64/n32/s_fma.c: New file.
Expand Down
5 changes: 3 additions & 2 deletions sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,9 @@
/* We need to use a frame pointer for the functions in which we
adjust $sp around the syscall, or debug information and unwind
information will be $sp relative and thus wrong during the syscall. As
of GCC 3.4.3, this is sufficient. */
#define FORCE_FRAME_POINTER alloca (4)
of GCC 4.7, this is sufficient. */
#define FORCE_FRAME_POINTER \
void *volatile __fp_force __attribute__ ((unused)) = alloca (4)

#define internal_syscall5(ncs_init, cs_init, input, err, arg1, arg2, arg3, arg4, arg5)\
({ \
Expand Down

0 comments on commit e525bc9

Please sign in to comment.