]> gcc.gnu.org Git - gcc.git/commitdiff
re PR rtl-optimization/5892 (ICE in gen_nop_type during 2.4.17 ia64 kernel build)
authorJakub Jelinek <jakub@redhat.com>
Wed, 13 Mar 2002 07:49:23 +0000 (08:49 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 13 Mar 2002 07:49:23 +0000 (08:49 +0100)
PR optimization/5892
* config/ia64/ia64.c (rotate_one_bundle): Update current packet.

* gcc.c-torture/compile/20020312-1.c: New test.

From-SVN: r50723

gcc/ChangeLog
gcc/config/ia64/ia64.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/20020312-1.c [new file with mode: 0644]

index 5bd8a31badfd5be3a0c7ecde658d235389794b4f..7127531117c4dddbb4c8b1f64bb3f19d93a1accb 100644 (file)
@@ -1,3 +1,8 @@
+2002-03-12  Jakub Jelinek  <jakub@redhat.com>
+
+       PR optimization/5892
+       * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
+
 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
 
        * loop.c (basic_induction_var): Don't call convert_modes if mode
index 1c7c5a35876a0700404f7530715c1b19e1118b74..8afa9515ad21a94271a3a4c564752759a39dc0ff 100644 (file)
@@ -5632,6 +5632,8 @@ rotate_one_bundle (dump)
       memmove (sched_data.insns,
               sched_data.insns + 3,
               sched_data.cur * sizeof *sched_data.insns);
+      sched_data.packet
+       = &packets[(sched_data.packet->t2 - bundle) * NR_BUNDLES];
     }
   else
     {
index 9d5522026415d798c2a203081b2446f6322c688e..6dbf636304346de8afac5650075287e6a25f41bd 100644 (file)
@@ -2,6 +2,8 @@
 
        * gcc.c-torture/compile/20020309-2.c: New test.
 
+       * gcc.c-torture/compile/20020312-1.c: New test.
+
 2002-03-12  Nathan Sidwell  <nathan@codesourcery.com>
 
        * g++.dg/other/access1.C: New test.
diff --git a/gcc/testsuite/gcc.c-torture/compile/20020312-1.c b/gcc/testsuite/gcc.c-torture/compile/20020312-1.c
new file mode 100644 (file)
index 0000000..9f61dae
--- /dev/null
@@ -0,0 +1,19 @@
+/* PR optimization/5892 */
+typedef struct { unsigned long a; unsigned int b, c; } A;
+typedef struct { unsigned long a; A *b; int c; } B;
+
+static inline unsigned int
+bar (unsigned int x)
+{
+  unsigned long r;
+  asm ("" : "=r" (r) : "0" (x));
+  return r >> 31;
+}
+
+int foo (B *x)
+{
+  A *y;
+  y = x->b;
+  y->b = bar (x->c);
+  y->c = ({ unsigned int z = 1; (z << 24) | (z >> 24); });
+}
This page took 0.116423 seconds and 5 git commands to generate.