]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR target/43417 (SH: 4.4 ICE in final_scan_insn, at final.c:2604)
authorJie Zhang <jie@codesourcery.com>
Sat, 10 Apr 2010 15:12:14 +0000 (15:12 +0000)
committerJie Zhang <jiez@gcc.gnu.org>
Sat, 10 Apr 2010 15:12:14 +0000 (15:12 +0000)
PR target/43417
* gcc.target/sh/pr43417.c: New test.

From-SVN: r158192

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/sh/pr43417.c [new file with mode: 0644]

index 1ca318b3ac623eecd5a2a3171878e23a65c89ad6..c7b9ccfdc475328e7069faa660d64f03475cdbd9 100644 (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-10  Tobias Burnus  <burnus@net-b.de>
 
        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 (file)
index 0000000..081ff46
--- /dev/null
@@ -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);
+}
+