This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix optimization regression in constant folder
> That doesn't make sense: a type either wraps on overflow or is
> undefined on overflow.
Well, I've given the rationale and I stand by it. We already have the
property that, if flag_strict_overflow is not set, signed types are neither
TYPE_OVERFLOW_WRAPS nor TYPE_OVERFLOW_UNDEFINED.
> I think TYPE_IS_SIZETYPE should imply TYPE_OVERFLOW_UNDEFINED.
Agreed. We already have this in Ada because size types are signed, but that's
not sufficient, we need more to be able to reassociate.
> Richard's patch for PR 30364 should test TYPE_OVERFLOW_UNDEFINED, not
> TYPE_OVERFLOW_WRAPS.
Makes sense, but that won't change anything as far as Ada is concerned.
--
Eric Botcazou