aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2002-03-13 08:49:23 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2002-03-13 08:49:23 +0100
commit09948ece3d6f36ebf908a5a2ee6b98d856bf0c92 (patch)
tree743bd7bd3937b11031c1a4937eca2ae4264436e2
parent4061c1a39342c6dc6ff372a9e05d206acad4fac5 (diff)
downloadgcc-09948ece3d6f36ebf908a5a2ee6b98d856bf0c92.zip
gcc-09948ece3d6f36ebf908a5a2ee6b98d856bf0c92.tar.gz
gcc-09948ece3d6f36ebf908a5a2ee6b98d856bf0c92.tar.bz2
re PR rtl-optimization/5892 (ICE in gen_nop_type during 2.4.17 ia64 kernel build)
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
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/ia64/ia64.c2
-rw-r--r--gcc/testsuite/ChangeLog2
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20020312-1.c19
4 files changed, 28 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 5bd8a31..7127531 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/config/ia64/ia64.c b/gcc/config/ia64/ia64.c
index 1c7c5a3..8afa951 100644
--- a/gcc/config/ia64/ia64.c
+++ b/gcc/config/ia64/ia64.c
@@ -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
{
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 9d55220..6dbf636 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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
index 0000000..9f61dae
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/compile/20020312-1.c
@@ -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); });
+}