This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix PR32628, bogus overflow flag on sizetype consts
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- To: rguenther at suse dot de
- Cc: ebotcazou at adacore dot com, gcc-patches at gcc dot gnu dot org
- Date: Tue, 15 Jan 2008 11:47:16 EST
- Subject: Re: [PATCH] Fix PR32628, bogus overflow flag on sizetype consts
- References: <Pine.LNX.4.64.0801151634030.23003@zhemvz.fhfr.qr>
> * 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?