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


Michael Matz <matz@suse.de> writes:

> > One can argue about what those properties ought to be, but they clearly 
> > have *some* properties!
> 
> Of course.  I think "unsigned, wrapping overflow" are these properties, 
> hence no need for a special sizetypiness.

Look for the case
      if ((TYPE_OVERFLOW_UNDEFINED (ctype)
	   || (TREE_CODE (ctype) == INTEGER_TYPE && TYPE_IS_SIZETYPE (ctype)))
in fold-const.c.

That is an optimization that sizetypes should have but that unsigned
wrapping types do not.

Ian


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