https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67042
--- Comment #1 from Mikael Morin <mikael at gcc dot gnu.org> --- Author: mikael Date: Wed Aug 19 13:42:36 2015 New Revision: 227008 URL: https://gcc.gnu.org/viewcvs?rev=227008&root=gcc&view=rev Log: Avoid signed left shift undefined behaviour in sext_hwi gcc/ PR other/67042 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and conditionalize the whole on __GNUC__. Add fallback code depending neither on undefined nor implementation-defined behaviour. Modified: trunk/gcc/ChangeLog trunk/gcc/hwint.h