This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fix PR rtl-optimization/31944
- From: "Andreas Krebbel" <Andreas dot Krebbel at de dot ibm dot com>
- To: Eric Botcazou <ebotcazou at adacore dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 17 Jan 2008 11:29:00 +0100
- Subject: Re: Fix PR rtl-optimization/31944
- References: <200801141321.47359.ebotcazou@adacore.com>
Hi,
I think this testcase needs a "dg-do compile" since it can't be
assembled on every platform.
Bye,
-Andreas-
> 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
>
> * gcc.c-torture/compile/20080114-1.c: New test.
/* PR rtl-optimization/31944 */
/* Origin: Aurelien Jarno <aurelien@aurel32.net> */
int type;
void stuck(int res)
{
if (type == 1) {
if (res == 0) asm volatile("nop");
}
else if (type == 0) {
if (res == 0) asm volatile("nop" : : "i" (0));
}
}