re PR target/43417 (SH: 4.4 ICE in final_scan_insn, at final.c:2604)

PR target/43417
	* gcc.target/sh/pr43417.c: New test.

From-SVN: r158193
This commit is contained in:
Jie Zhang 2010-04-10 15:14:13 +00:00 committed by Jie Zhang
parent 807a5c26fa
commit 7e2af6fbeb
2 changed files with 41 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2010-04-10 Jie Zhang <jie@codesourcery.com>
PR target/43417
* gcc.target/sh/pr43417.c: New test.
2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
PR target/43643

View File

@ -0,0 +1,36 @@
/* { dg-do compile } */
/* { dg-options "-O2 -m4" } */
int pid_count = 0;
main (int argc, char *argv[])
{
unsigned int c;
unsigned long long maxbytes = 0;
extern char *optarg;
int i;
int pid_cntr;
int pid;
int pid_list[1000];
while ((c = getopt (argc, argv, "c:b:p:wvh")) != (-1))
{
switch ((char) c)
{
case 'b':
maxbytes = atoll (optarg);
}
}
pid = fork ();
while ((pid != 0) && (maxbytes > 1024 * 1024 * 1024))
{
maxbytes = maxbytes - (1024 * 1024 * 1024);
pid = fork ();
if (pid != 0)
pid_cntr++;
pid_list[i] = pid;
}
while ((pid_count < pid_cntr))
{
}
kill (pid_list[i], 9);
}