+2006-01-18 Frank Ch. Eigler <fche@elastic.org>
+
+ * translate.cxx (c_unparser_assignment::visit_arrayindex):
+ Eliminate dummy assignments for "<<<" code.
+
2006-01-17 Josh Stone <joshua.i.stone@intel.com>
PR 2156
// There is an exception to the above form: if we're doign a <<< assigment to
// a statistic-valued map, there's a special form we follow:
//
- // ({ tmp0=(idx0); ... tmpN=(idxN); rvar=(rhs); lvar; res;
+ // ({ tmp0=(idx0); ... tmpN=(idxN); rvar=(rhs);
// *no need to* lock (array);
// _stp_map_add_stat (array, idx0...N, rvar);
// *no need to* unlock (array);
o->newline() << "c->last_stmt = " << lex_cast_qstring(*e->tok) << ";";
// NB: *no need to* varlock_w guard (*parent, mvar);
o->newline() << mvar.add (idx, rvar) << ";";
- // dummy assignments
- o->newline() << lvar << " = " << rvar << ";";
- o->newline() << res << " = " << rvar << ";";
+ res = rvar;
+ // no need for these dummy assignments
+ // o->newline() << lvar << " = " << rvar << ";";
+ // o->newline() << res << " = " << rvar << ";";
}
else
{ // block used to control varlock_w lifespan