re PR target/26826 (ICE in reg_or_subregno, at jump.c:2011)

2006-04-28  Richard Guenther  <rguenther@suse.de>

	PR target/26826
	* gcc.target/i386/pr26826.c: New testcase.

From-SVN: r113348
This commit is contained in:
Richard Guenther 2006-04-28 14:36:14 +00:00 committed by Richard Biener
parent 9edaf51efb
commit a4858cb066
2 changed files with 17 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2006-04-28 Richard Guenther <rguenther@suse.de>
PR target/26826
* gcc.target/i386/pr26826.c: New testcase.
2006-04-28 Jakub Jelinek <jakub@redhat.com>
PR middle-end/27260

View file

@ -0,0 +1,12 @@
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { dg-require-effective-target ilp32 } */
/* { dg-options "-O -fomit-frame-pointer -march=i586" } */
void foo(char* p, char c, int i)
{
char a[2], *q=a+1;
if (p && i)
*p = q-a+bar(i);
if (c)
bar(i);
}