Re: [PATCH][1/n][C] Do not sign-extend sizetypes

2012-06-07 Thread H.J. Lu
On Mon, Apr 11, 2011 at 7:25 AM, Richard Guenther rguent...@suse.de wrote: This is another try at making sizetype behavior more consistent with other integral types.  In particular this series will eventually succeed in making TYPE_UNSIGNED tell the truth for sizetypes ... This first patch

[PATCH][1/n][C] Do not sign-extend sizetypes

2011-04-11 Thread Richard Guenther
This is another try at making sizetype behavior more consistent with other integral types. In particular this series will eventually succeed in making TYPE_UNSIGNED tell the truth for sizetypes ... This first patch replaces a hack in the C frontend to handle zero-sized arrays (int a[] = {}) by

Re: [PATCH][1/n][C] Do not sign-extend sizetypes

2011-04-11 Thread Jay Foad
On 11 April 2011 15:25, Richard Guenther rguent...@suse.de wrote: !   set_min_and_max_values_for_integral_type (t, precision, !                                           /*is_unsinged=*/true); s/ng/gn/ Jay.

Re: [PATCH][1/n][C] Do not sign-extend sizetypes

2011-04-11 Thread Joseph S. Myers
On Mon, 11 Apr 2011, Richard Guenther wrote: c-family/ * c-common.c (complete_array_type): Build a range type of proper type. OK. -- Joseph S. Myers jos...@codesourcery.com