diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2011-11-25 05:23:41 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2011-11-25 05:23:41 +0000 |
commit | 289edab980c88cb21bd0a8f24bf10d47c260ca84 (patch) | |
tree | fd6271ad05db21666271694a067303eb863b73d7 /sys/arch/alpha | |
parent | fe0c276f9c7117306203b940b2acfe89658b9dc4 (diff) |
Compile fixes for gcc4 (-Wbounded)
Diffstat (limited to 'sys/arch/alpha')
-rw-r--r-- | sys/arch/alpha/alpha/autoconf.c | 4 | ||||
-rw-r--r-- | sys/arch/alpha/alpha/machdep.c | 8 |
2 files changed, 7 insertions, 5 deletions
diff --git a/sys/arch/alpha/alpha/autoconf.c b/sys/arch/alpha/alpha/autoconf.c index 117c64fa3a0..b9d342dc40e 100644 --- a/sys/arch/alpha/alpha/autoconf.c +++ b/sys/arch/alpha/alpha/autoconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: autoconf.c,v 1.34 2011/11/18 19:24:28 miod Exp $ */ +/* $OpenBSD: autoconf.c,v 1.35 2011/11/25 05:23:40 miod Exp $ */ /* $NetBSD: autoconf.c,v 1.16 1996/11/13 21:13:04 cgd Exp $ */ /* @@ -119,7 +119,7 @@ parse_prom_bootdev() booted_partition = 0; bootdev_data = NULL; - bcopy(bootinfo.booted_dev, boot_dev, sizeof boot_dev); + bcopy(bootinfo.booted_dev, boot_dev, sizeof bootinfo.booted_dev); #if 0 printf("parse_prom_bootdev: boot dev = \"%s\"\n", boot_dev); #endif diff --git a/sys/arch/alpha/alpha/machdep.c b/sys/arch/alpha/alpha/machdep.c index 220379bbfe7..e86343e24a9 100644 --- a/sys/arch/alpha/alpha/machdep.c +++ b/sys/arch/alpha/alpha/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.134 2011/07/05 04:48:01 guenther Exp $ */ +/* $OpenBSD: machdep.c,v 1.135 2011/11/25 05:23:40 miod Exp $ */ /* $NetBSD: machdep.c,v 1.210 2000/06/01 17:12:38 thorpej Exp $ */ /*- @@ -1421,6 +1421,7 @@ sendsig(catcher, sig, mask, code, type, val) { struct proc *p = curproc; struct sigcontext *scp, ksc; + struct fpreg *fpregs = (struct fpreg *)&ksc.sc_fpregs; struct trapframe *frame; struct sigacts *psp = p->p_sigacts; int oonstack, fsize, rndfsize, kscsize; @@ -1475,7 +1476,7 @@ sendsig(catcher, sig, mask, code, type, val) if (p->p_addr->u_pcb.pcb_fpcpu != NULL) fpusave_proc(p, 1); ksc.sc_ownedfp = p->p_md.md_flags & MDP_FPUSED; - memcpy((struct fpreg *)ksc.sc_fpregs, &p->p_addr->u_pcb.pcb_fp, + memcpy(/*ksc.sc_*/fpregs, &p->p_addr->u_pcb.pcb_fp, sizeof(struct fpreg)); #ifndef NO_IEEE ksc.sc_fp_control = alpha_read_fp_c(p); @@ -1557,6 +1558,7 @@ sys_sigreturn(p, v, retval) syscallarg(struct sigcontext *) sigcntxp; } */ *uap = v; struct sigcontext ksc; + struct fpreg *fpregs = (struct fpreg *)&ksc.sc_fpregs; #ifdef DEBUG struct sigcontext *scp; #endif @@ -1595,7 +1597,7 @@ sys_sigreturn(p, v, retval) /* XXX ksc.sc_ownedfp ? */ if (p->p_addr->u_pcb.pcb_fpcpu != NULL) fpusave_proc(p, 0); - memcpy(&p->p_addr->u_pcb.pcb_fp, (struct fpreg *)ksc.sc_fpregs, + memcpy(&p->p_addr->u_pcb.pcb_fp, /*ksc.sc_*/fpregs, sizeof(struct fpreg)); #ifndef NO_IEEE p->p_addr->u_pcb.pcb_fp.fpr_cr = ksc.sc_fpcr; |