mirror of
https://sourceware.org/git/glibc.git
synced 2026-01-06 11:51:29 +03:00
Fix some 64-bit sparc build warnings.
* sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c (__makecontext): Fix signedness of pointer casts setting up 'sp'. * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long' for 'resultvar' otherwise things get truncated on 64-bit.
This commit is contained in:
@@ -29,9 +29,9 @@ __makecontext (ucontext_t *ucp, void (*func) (void), int argc, ...)
|
||||
va_list ap;
|
||||
int i;
|
||||
|
||||
sp = (long *) ((long) ucp->uc_stack.ss_sp + ucp->uc_stack.ss_size);
|
||||
sp = (unsigned long *) ((long) ucp->uc_stack.ss_sp + ucp->uc_stack.ss_size);
|
||||
sp -= (argc > 6 ? argc : 6) + 32;
|
||||
sp = (long *) (((long) sp) & -16L);
|
||||
sp = (unsigned long *) (((long) sp) & -16L);
|
||||
topsp = sp + (argc > 6 ? argc : 6) + 16;
|
||||
|
||||
ucp->uc_mcontext.mc_gregs[MC_PC] = (long) func;
|
||||
|
||||
Reference in New Issue
Block a user