[Graphite] Fix type problems in loop ivs.

Richard Guenther richard.guenther@gmail.com
Thu Mar 11 14:20:00 GMT 2010


On Thu, Mar 11, 2010 at 2:54 PM, Sebastian Pop <sebpop@gmail.com> wrote:
> On Thu, Mar 11, 2010 at 04:48, Richard Guenther
> <richard.guenther@gmail.com> wrote:
>> Java indeed fails to initialize most of the common trees.
>> I suggest to use ssizetype if long_long_type_node is NULL.
>
> Here is the fix.  Does this look good?

Hm.  I don't like the #define.  And Java doesn't initialize
long_integer_type_node either, so I think the patch won't fix
the bootstrap issue.  Basically the C kind types are not
really supposed to be used in the middle-end.

What you probably want is to use
smallest_mode_for_size (type_precision + 1, MODE_INT)
and fail if that returns BLKmode (ugh, it doesn't ...).
From the modes precision then build a type using
build_nonstandard_integer_type. And possibly you
want to restrict yourself to maximum BITS_PER_WORD
size to avoid long long or TImode arithmetic.

Richard.

> Thanks,
> Sebastian
>



More information about the Gcc-patches mailing list