From: Jie Zhang Date: Sat, 10 Apr 2010 15:12:14 +0000 (+0000) Subject: re PR target/43417 (SH: 4.4 ICE in final_scan_insn, at final.c:2604) X-Git-Tag: releases/gcc-4.6.0~7963 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a6d57223b149b3859ad5d5341a721a05b2e0060d;p=thirdparty%2Fgcc.git 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: r158192 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 1ca318b3ac62..c7b9ccfdc475 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2010-04-10 Jie Zhang + + PR target/43417 + * gcc.target/sh/pr43417.c: New test. + 2010-04-10 Tobias Burnus PR fortran/43591 diff --git a/gcc/testsuite/gcc.target/sh/pr43417.c b/gcc/testsuite/gcc.target/sh/pr43417.c new file mode 100644 index 000000000000..081ff46b998b --- /dev/null +++ b/gcc/testsuite/gcc.target/sh/pr43417.c @@ -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); +} +