[PATCH] m32r: fix and update for gcc-4.0
authorHirokazu Takata <takata@linux-m32r.org>
Fri, 24 Feb 2006 21:03:51 +0000 (13:03 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 24 Feb 2006 22:31:36 +0000 (14:31 -0800)
commit6ced13cdcab440931b87829b0f2d0dedacfb3f2d
tree8bdd7a80685a7069b30a0e03d32892a81ea8ca9c
parentcde05cf2145b0aa06dd61277060bfba5d38acb0b
[PATCH] m32r: fix and update for gcc-4.0

Fix and update for gcc-4.0.

- arch/m32r/kernel/signal.c:
  Change type of the 8th parameter of sys_rt_sigsuspend() from
  'struct pt_regs' to 'struct pt_regs *'.
  This functions make use of the 'regs' parameter to return status value,
  but gcc-4.0 optimizes and removes it as a dead code.
  Functions, sys_sigaltstack() and sys_rt_sigreturn(), have also modified.

- arch/m32r/lib/usercopy.c, include/asm-m32r/uaccess.h:
  Add early-clobber constraints('&') to output values of asm statements;
  these constraints seems to be required for gcc-4.0 register assignment.

Signed-off-by: Hayato Fujiwara <fujiwara@linux-m32r.org>
Signed-off-by: Hirokazu Takata <takata@linux-m32r.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/m32r/kernel/signal.c
arch/m32r/lib/usercopy.c
include/asm-m32r/uaccess.h