yann@1: --- /dev/null Sat Dec 14 13:56:51 2002 yann@1: +++ gcc-3.3.1/gcc/testsuite/gcc.dg/pr11162-1.c Sun Sep 14 16:24:41 2003 yann@1: @@ -0,0 +1,22 @@ yann@1: +/* yann@1: + * PR optimization/11162 yann@1: + * Reporter: Toshiyasu Morita yann@1: + * Summary: [3.4 Regression] [-fnew-ra] ICE compiling channel.i on sh yann@1: + * Keywords: ice-on-valid-code yann@1: + * Description: yann@1: + * [ICE] when channel.i from stress-1.17 is compiled with options: yann@1: + * -O2 -m4 -fnew-ra yann@1: + * ... yann@1: + * The CFG code gets confused by the addition of a USE insn after a sibcall. yann@1: + * Sibcalls are supposed to end the block (and the function!), so the fact yann@1: + * that we have an instruction following one (even if its fake) is confusing. yann@1: + * yann@1: + * testcase tweaked by dank@kegel.com yann@1: + */ yann@1: +/* { dg-do compile } */ yann@1: +/* { dg-options "-O2 -fnew-ra" } */ yann@1: + yann@1: +int foo(char *p1) yann@1: +{ yann@1: + return bar(p1); yann@1: +}