diff options
author | ienkovich <ienkovich@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-10-15 09:26:39 +0000 |
---|---|---|
committer | ienkovich <ienkovich@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-10-15 09:26:39 +0000 |
commit | 9f379f818f624e10d61b00403eac6f3684e58663 (patch) | |
tree | 387b86f805e596a403d670ffdc4d20882ad59941 /libmpx | |
parent | 6b3f09b4053ced27cc491b096f6c7281cbc555b9 (diff) | |
download | gcc-9f379f818f624e10d61b00403eac6f3684e58663.tar.gz |
libmpx/
PR other/66887
* mpxrt/mpxrt.c (read_mpx_status_sig): Remove useless code.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@228838 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libmpx')
-rw-r--r-- | libmpx/ChangeLog | 5 | ||||
-rw-r--r-- | libmpx/mpxrt/mpxrt.c | 9 |
2 files changed, 7 insertions, 7 deletions
diff --git a/libmpx/ChangeLog b/libmpx/ChangeLog index 450b7d36e8c..5e5f77d68a7 100644 --- a/libmpx/ChangeLog +++ b/libmpx/ChangeLog @@ -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> * configure.ac: Remove link_mpx. diff --git a/libmpx/mpxrt/mpxrt.c b/libmpx/mpxrt/mpxrt.c index 0eff87e7cc6..c29c5d9a501 100644 --- a/libmpx/mpxrt/mpxrt.c +++ b/libmpx/mpxrt/mpxrt.c @@ -152,13 +152,8 @@ xgetbv (uint32_t index) static uint64_t read_mpx_status_sig (ucontext_t *uctxt) { - uint8_t __attribute__ ((__aligned__ (64))) buffer[4096]; - struct xsave_struct *xsave_buf = (struct xsave_struct *)buffer; - - memset (buffer, 0, sizeof (buffer)); - memcpy (buffer, - (uint8_t *)uctxt->uc_mcontext.fpregs + XSAVE_OFFSET_IN_FPMEM, - sizeof (struct xsave_struct)); + uint8_t *regs = (uint8_t *)uctxt->uc_mcontext.fpregs + XSAVE_OFFSET_IN_FPMEM; + struct xsave_struct *xsave_buf = (struct xsave_struct *)regs; return xsave_buf->bndcsr.status_reg; } |