This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, i386, PR target/66048] Fix mode switching ICE for functions returning bounds
- From: Uros Bizjak <ubizjak at gmail dot com>
- To: Ilya Enkovich <enkovich dot gnu at gmail dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 12 May 2015 12:40:08 +0200
- Subject: Re: [PATCH, i386, PR target/66048] Fix mode switching ICE for functions returning bounds
- Authentication-results: sourceware.org; auth=none
- References: <20150512100742 dot GA47912 at msticlxl57 dot ims dot intel dot com>
On Tue, May 12, 2015 at 12:07 PM, Ilya Enkovich <enkovich.gnu@gmail.com> wrote:
> This patch moves up use insns for returned bounds and also marks bnd1 register as holding return value. This fixes problem in create_pre_exit for functions with no returned bounds initialization. Bootstrapped and regtested for x86_64-unknown-linux-gnu. Is it OK for trunk/gcc-5?
>
> 2015-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
>
> * function.c (diddle_return_value_1): Process bounds first.
> * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
> register.
>
> gcc/testsuite/
>
> 2015-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
>
> * gcc.target/i386/mpx/pr66048.cc: New.
x86 part is OK.
Thanks,
Uros.