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] Fix optimization regression in constant folder


> I don't think that's good enough.  If we can't specify this better, then
> I suspect that, over time, it's going to break, and people will
> eventually just rip it out.  

I think we CAN specific it better, but it's just not that easy.

> That begs the question: why aren't they signed

I think because you run into problems in corner cases in C if size_t and
sizetype don't have the same precision and signedness or, more precisely,
if you can't encode a value that's a valid result of size_t in sizetype.


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