This is the mail archive of the gcc-cvs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

r227008 - in /trunk/gcc: ChangeLog hwint.h


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]