On Thu, Nov 3, 2011 at 1:20 PM, Delesley Hutchins <deles...@google.com> wrote: > > This patch adds support for array indexing (i.e. operator []) in lock > expressions. The current version of gcc seems to emit these as > expressions involving pointer arithmetic, so we update > get_canonical_lock_expr() to handle such expressions.
This looks reasonable to me, but I don't have much familiarity with Gimple. Diego, can you please review? Thanks, Ollie