+2011-03-18 Richard Henderson <rth@redhat.com>
+ Jakub Jelinek <jakub@redhat.com>
+
+ PR bootstrap/48161
+ * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
+ instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
+
2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
PR middle-end/47725
tmp = convert_memory_address_addr_space (tmode, tmp, as);
if (modifier == EXPAND_SUM || modifier == EXPAND_INITIALIZER)
- result = gen_rtx_PLUS (tmode, result, tmp);
+ result = simplify_gen_binary (PLUS, tmode, result, tmp);
else
{
subtarget = bitpos ? NULL_RTX : target;
+2011-03-18 Jakub Jelinek <jakub@redhat.com>
+
+ PR bootstrap/48161
+ * gcc.c-torture/compile/pr48161.c: New test.
+
2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
PR middle-end/47725
--- /dev/null
+/* PR bootstrap/48161 */
+
+struct T { int u; };
+struct G { int l; int t; int r; };
+struct V { struct G v[10]; };
+struct { struct V b; } *h;
+void bar (void);
+
+struct G *
+baz (struct V *x, unsigned y)
+{
+ return &x->v[y];
+}
+
+int
+foo (struct T *x, struct T *y)
+{
+ if ((baz (&h->b, y->u)->t ? baz (&h->b, y->u)->t : 0)
+ - baz (h ? &h->b : 0, x->u)->r
+ - (baz (h ? &h->b : 0, x->u)->t > 0 ? 5 : 0))
+ return 1;
+ bar ();
+ return 0;
+}