This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch RFA middle-end] Fix PR target/41993
- From: Uros Bizjak <ubizjak at gmail dot com>
- To: Kaz Kojima <kkojima at rr dot iij4u dot or dot jp>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 6 Nov 2012 15:33:18 +0100
- Subject: Re: [patch RFA middle-end] Fix PR target/41993
- References: <20121106.075813.150568568.kkojima@rr.iij4u.or.jp>
On Mon, Nov 5, 2012 at 11:58 PM, Kaz Kojima <kkojima@rr.iij4u.or.jp> wrote:
> The attached patch is to solve PR target/41993 which will affect
> targets using MODE_EXIT.
> Without it, we can't find all return registers for __builtin_return
> in mode-switching.c:create_pre_exit. See the trail #4 by Uros in
> the PR for the details. The patch is tested with bootstrap and
> regtested on i686-pc-linux-gnu with no new failures. It's also
> tested on cross sh4-unknown-linux-gnu.
Attached patch adds the testcase from PR to the testsuite.
2012-11-06 Uros Bizjak <ubizjak@gmail.com>
PR middle-end/41993
* gcc.dg/torture/pr41993.c: New test.
Tested on x86_64-pc-linux-gnu {,-m32}, committed to mainline SVN.
Uros.
/* { dg-do compile } */
/* { dg-options "-mavx -mvzeroupper" { target { i?86-*-* x86_64-*-* } } } */
short retframe_short (void *rframe)
{
__builtin_return (rframe);
}