Add ALIGNOF

Nathan Sidwell nathan@codesourcery.com
Tue Jun 12 10:04:00 GMT 2007


Alan Modra wrote:
> On Mon, Jun 11, 2007 at 09:32:10AM +0100, Nathan Sidwell wrote:

>> +	      new_abs (val / opb);
>> +	    }
> 
> I don't think you should be dividing by opb for ALIGNOF.

I must admit to being confused about opb and when it should be 
divided/multiplied.  It seems to me that ALIGNOF and SIZEOF should return the 
same units, and that implies dividing for both (or not dividing for both).

What reason would there be for not dividing the ALIGNOF case?

nathan

-- 
Nathan Sidwell    ::   http://www.codesourcery.com   ::         CodeSourcery
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk



More information about the Binutils mailing list