[4.8] Backport a gimplify fix.

See
  http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55245
  6014e0c5342ece48f16f5b02f1b0657d2538a036

Change-Id: I25bfcfdbf0911f18db9b554012258f4d9aa060bd

Author: Ben Cheng <bccheng@android.com>
Date:   Tue Apr 2 19:34:40 2013 +0800