Better error reporting for GCC

Change-Id: Icab577fcc7a61e1570dbb884a9e602d603cdf76f