This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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]

Re: as.exe: out of memory allocating 4294967280 bytes


On Mon, Oct 29, 2012 at 08:00:12AM +0000, Simonov, Vladimir wrote:
> > It's a bug.  I didn't consider strange hosts that have sizeof(long) !=
> > sizeof(size_t).  Does the following fix your problem?
> > 
> > 	* sb.c (sb_check): Use __builtin_clzll when size_t is not the
> > 	same size as long.
> 
> Hi all,
> 
> Glad to inform you - the both patches work OK for me.
> Please decide which one should be committed.

Heh, I didn't see HJ's patch go by or I would have OK'd that one
rather than proffering a patch myself.  I committed a slight tweak on
my posted patch on the grounds that it changes less lines of code than
HJ's patch.

-- 
Alan Modra
Australia Development Lab, IBM


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