[PATCH] warn about out of range shift counts

Alan Modra amodra@bigpond.net.au
Thu Apr 16 07:58:00 GMT 2009


On Wed, Apr 15, 2009 at 12:36:55PM +0100, Jan Beulich wrote:
> gas/
> 2009-04-15  Jan Beulich  <jbeulich@novell.com>
> 
> 	* expr.c: Include limits.h if available, and #define CHAR_BITS
> 	otherwise.
> 	(expr): Check range of shift count when evaluating a constant
> 	expression.

You are including limits.h too early.  It must be somwhere after as.h
if you expect HAVE_LIMITS_H to be defined.  Otherwise OK.

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Binutils mailing list