mirror of git://gcc.gnu.org/git/gcc.git
re PR other/66887 (trunk/libmpx/mpxrt/mpxrt.c:158: possible performance problem)
libmpx/ PR other/66887 * mpxrt/mpxrt.c (read_mpx_status_sig): Remove useless code. From-SVN: r228838
This commit is contained in:
parent
1140d42f76
commit
269ca76f4b
|
|
@ -1,3 +1,8 @@
|
||||||
|
2015-10-15 Ilya Enkovich <enkovich.gnu@gmail.com>
|
||||||
|
|
||||||
|
PR other/66887
|
||||||
|
* mpxrt/mpxrt.c (read_mpx_status_sig): Remove useless code.
|
||||||
|
|
||||||
2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
|
2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
|
||||||
|
|
||||||
* configure.ac: Remove link_mpx.
|
* configure.ac: Remove link_mpx.
|
||||||
|
|
|
||||||
|
|
@ -152,13 +152,8 @@ xgetbv (uint32_t index)
|
||||||
static uint64_t
|
static uint64_t
|
||||||
read_mpx_status_sig (ucontext_t *uctxt)
|
read_mpx_status_sig (ucontext_t *uctxt)
|
||||||
{
|
{
|
||||||
uint8_t __attribute__ ((__aligned__ (64))) buffer[4096];
|
uint8_t *regs = (uint8_t *)uctxt->uc_mcontext.fpregs + XSAVE_OFFSET_IN_FPMEM;
|
||||||
struct xsave_struct *xsave_buf = (struct xsave_struct *)buffer;
|
struct xsave_struct *xsave_buf = (struct xsave_struct *)regs;
|
||||||
|
|
||||||
memset (buffer, 0, sizeof (buffer));
|
|
||||||
memcpy (buffer,
|
|
||||||
(uint8_t *)uctxt->uc_mcontext.fpregs + XSAVE_OFFSET_IN_FPMEM,
|
|
||||||
sizeof (struct xsave_struct));
|
|
||||||
return xsave_buf->bndcsr.status_reg;
|
return xsave_buf->bndcsr.status_reg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue