On Mon, Nov 5, 2012 at 11:58 PM, Kaz Kojima <kkoj...@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  <ubiz...@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);
}

Reply via email to