Re: [PATCH] Optimize byte_from_pos, pos_from_bit

2012-05-10 Thread Richard Guenther
On Thu, 10 May 2012, Eric Botcazou wrote: > > Like this? > > Let's be a bit more factual. :-) > > /* Return the combined truncated byte position for the byte offset OFFSET and > the bit position BITPOS. > > These functions operate on byte and bit positions present in FIELD_DECLs >

Re: [PATCH] Optimize byte_from_pos, pos_from_bit

2012-05-10 Thread Eric Botcazou
> Like this? Let's be a bit more factual. :-) /* Return the combined truncated byte position for the byte offset OFFSET and the bit position BITPOS. These functions operate on byte and bit positions present in FIELD_DECLs and assume that these expressions result in no (intermediate)

Re: [PATCH] Optimize byte_from_pos, pos_from_bit

2012-05-10 Thread Richard Guenther
On Wed, 9 May 2012, Eric Botcazou wrote: > > This optimizes byte_from_pos and pos_from_bit by noting that we operate > > on sizes whose computations have no intermediate (or final) overflow. > > This is the single patch necessary to get Ada to bootstrap and test > > with TYPE_IS_SIZETYPE removed.

Re: [PATCH] Optimize byte_from_pos, pos_from_bit

2012-05-09 Thread Eric Botcazou
> This optimizes byte_from_pos and pos_from_bit by noting that we operate > on sizes whose computations have no intermediate (or final) overflow. > This is the single patch necessary to get Ada to bootstrap and test > with TYPE_IS_SIZETYPE removed. Rather than amending size_binop > (my original pl

[PATCH] Optimize byte_from_pos, pos_from_bit

2012-05-08 Thread Richard Guenther
This optimizes byte_from_pos and pos_from_bit by noting that we operate on sizes whose computations have no intermediate (or final) overflow. This is the single patch necessary to get Ada to bootstrap and test with TYPE_IS_SIZETYPE removed. Rather than amending size_binop (my original plan) I cho