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: Add ALIGNOF


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


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