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 PR32628, bogus overflow flag on sizetype consts


> 	* fold-const.c (fold_convert_const_int_from_int): Do not
> 	set overflow if that occured only because of a sign extension
> 	change when converting from/to a sizetype with the same
> 	precision.

Well certainly converting *to* a sizetype shouldn't set TREE_OVERFLOW,
but I don't understand why converting *from* a sizetype shouldn't set it
if we otherwise would be setting it.  Can you explain?


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