This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Ada] Avoid doing arithmetics in ENUMERAL_TYPE
On Thu, Apr 23, 2009 at 12:21 PM, Eric Botcazou <ebotcazou@adacore.com> wrote:
>> At least if TYPE_MIN/MAX_VALUE does not cover all of TYPE_PRECISION.
>> Otherwise the middle-end treats all integer types as exchangable.
>
> Not really, REDUCE_BIT_FIELD is applied only to INTEGER_TYPEs during RTL
> expansion so arithmetics in BOOLEAN_TYPE and ENUMERAL_TYPE doesn't work.
Uh, ok. This isn't on purpose (well, on my purpose).
Richard.