Have you considered __attribute__ ((__may_alias__)) on the variable declaration? I've used this on a structure declaration which, coincidently, may alias another structure ... solved my problem when upgrading from gcc 2.95 to 3.4.