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


> we know that sizetypes _definitely_ are a problem for the middle-end
> because of their peculiar semantics.

That may be, but those are the properties and semantics that they such
objects DO have from a conceptual point of view and any other way we
do it they would have the same semantics!  (I'm not saying this very
well, but what I'm trying to say is that those semantics are intrinsic
to the type of calculations that need to be done.)

One can argue that it's too hard to implement them properly, so we ought
to do some subsetting.  But if we do that, then we CERTAINLY should leave
the flag the way it is so that if somebody later wants to do it properly,
they at least have the data to do so.


> I question your assertion that you _really_ understand 
> where sizetypes are involved or not, or should be involved.  A point to 
> support that is http://gcc.gnu.org/ml/gcc-patches/2007-10/msg00038.html , 
> where you couldn't even be bothered to look at the current GCC sources 
> yourself, to look for where sizetypes should have been used too.

I'm sorry, I don't understand the above.  Sizetypes are used for sizes and
positions, so I understand your point.

> They aren't special cased in any of the new optimization passes, new
> being something like newer than 5 years.

And that's a bug that we're trying to fix by this thread.


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