This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] warn about out of range shift counts
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Jan Beulich <jbeulich at novell dot com>
- Cc: binutils at sourceware dot org
- Date: Thu, 16 Apr 2009 17:27:50 +0930
- Subject: Re: [PATCH] warn about out of range shift counts
- References: <49E5E2F7.76EA.0078.0@novell.com>
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