This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Fix PR tree-optimization/49471
On Tue, Jul 26, 2011 at 8:07 PM, Sebastian Pop <sebpop@gmail.com> wrote:
> On Tue, Jul 26, 2011 at 08:30, Richard Guenther
> <richard.guenther@gmail.com> wrote:
>> I suppose we also need to allow POINTER_TYPE_P here (but then
>> treat it like an unsigned variable of the same width).
>
> Updated patch. ?Ok for trunk after regstrap?
+ uns = POINTER_TYPE_P (type) | TYPE_UNSIGNED (type);
+ unsigned_p = TYPE_PRECISION (type) > precision ? uns : unsigned_p | uns;
Um, operator precedence? Ok if written with an if stmt.
Thanks,
Richard.
> Thanks,
> Sebastian
>