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
> It was my understanding during this whole thread, that this sizetype with
> the funny guarantees only can come out of the Ada frontend (and therefore
> needs to be dealt with in the middle end), and should never be produced by
> the other languages, in particular not C or C++.
EVERY front end produces sizetypes because that's what we put in TYPE_SIZE,
etc of types!
> My understanding is supported by the comment in front of the
> TYPE_IS_SIZETYPE definition in tree.h where it explicitely mentions that
> size_t should not have this flag set.
Right, it shouldn't. sizetypes are NOT those types, but are INTERNAL
types used to communicate size and offset information between the front
end and the middle end.