+2001-09-03 Jakub Jelinek <jakub@redhat.com>
+
+ * loop.c (express_from_1): Fix CONSTANT_P(a) case.
+
2001-09-03 Richard Henderson <rth@redhat.com>
* function.h (struct function): Add arg_pointer_save_area_init.
}
else if (CONSTANT_P (a))
{
- return simplify_gen_binary (MINUS, GET_MODE (b) != VOIDmode ? GET_MODE (b) : GET_MODE (a), const0_rtx, a);
+ return simplify_gen_binary (MINUS, GET_MODE (b) != VOIDmode ? GET_MODE (b) : GET_MODE (a), b, a);
}
else if (GET_CODE (b) == PLUS)
{
+2001-09-03 Jakub Jelinek <jakub@redhat.com>
+
+ * gcc.c-torture/compile/20010903-1.c: New test.
+
2001-08-31 Roman Zippel <zippel@linux-m68k.org>
* testsuite/gcc.c-torture/execute/ieee/ieee.exp: Add -ffloat-store
--- /dev/null
+struct A {
+ long a;
+};
+
+static inline void foo(struct A *x)
+{
+ __asm__ __volatile__("" : "+m"(x->a) : "r"(x) : "memory", "cc");
+}
+
+static inline void bar(struct A *x)
+{
+ foo(x);
+}
+
+struct B { char buf[640]; struct A a; };
+struct B b[32];
+
+int baz(void)
+{
+ int i;
+ struct B *j;
+ for (i = 1; i < 32; i++)
+ {
+ j = &b[i];
+ bar(&j->a);
+ }
+ return 0;
+}