This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: [PATCH] Improve PR30911 and PR31023, Ada and VRP


> I still think that the right thing to do in the long-term is to introduce
> __builtin_assume and remove funky integer types from the middle-end.  If
> Richard's experiment works out then that would show that the front-end could
> generate calls to __builtin_assume at the start of every subroutine, saying
> to assume that parameters belong to their ranges, without breaking anything.
> It would make it much easier to play with different levels of assumptions,
> for example trying to find a sweet spot between Bob Duff and Richard Kenner.

I'm not at all clear that the only useful case is parameters.  Consider the
case where there's a pragma saying that everything must be initialized.  In
that case, nearly *all* values (including fields of records) must be valid
and I don't think you can do all that with __builtin_assume.


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