Re: locating unsigned type for non-standard precision

2012-04-27 Thread Peter Bigot
On Fri, Apr 27, 2012 at 4:29 AM, Georg-Johann Lay wrote: > Richard Guenther wrote: >> [PR c/51527] >> >> I think the fix would be sth like >> >> Index: gcc/convert.c >> === >> --- gcc/convert.c       (revision 186871) >> +++ gcc/conve

Re: locating unsigned type for non-standard precision

2012-04-27 Thread Richard Guenther
On Fri, Apr 27, 2012 at 11:29 AM, Georg-Johann Lay wrote: > Richard Guenther wrote: >> [PR c/51527] >> >> I think the fix would be sth like >> >> Index: gcc/convert.c >> === >> --- gcc/convert.c       (revision 186871) >> +++ gcc/conv

Re: locating unsigned type for non-standard precision

2012-04-27 Thread Georg-Johann Lay
Richard Guenther wrote: > [PR c/51527] > > I think the fix would be sth like > > Index: gcc/convert.c > === > --- gcc/convert.c (revision 186871) > +++ gcc/convert.c (working copy) > @@ -769,6 +769,7 @@ convert_to_integer

Re: locating unsigned type for non-standard precision

2012-04-26 Thread Richard Guenther
On Thu, Apr 26, 2012 at 3:12 PM, Georg-Johann Lay wrote: > Richard Guenther wrote: >> Georg-Johann Lay wrote: >>> Georg-Johann Lay wrote: Richard Guenther wrote: > Georg-Johann Lay wrote: >> [...] >> >> http://gcc.gnu.org/PR51527 >> >> It works with 4.8 trunk but crash

Re: locating unsigned type for non-standard precision

2012-04-26 Thread Georg-Johann Lay
Richard Guenther wrote: > Georg-Johann Lay wrote: >> Georg-Johann Lay wrote: >>> Richard Guenther wrote: Georg-Johann Lay wrote: > [...] > > http://gcc.gnu.org/PR51527 > > It works with 4.8 trunk but crashes with 4.7. > Did not yet track what changes made it work with 4

Re: locating unsigned type for non-standard precision

2012-04-26 Thread Richard Guenther
On Wed, Apr 25, 2012 at 7:34 PM, Georg-Johann Lay wrote: > Georg-Johann Lay wrote: >> Richard Guenther wrote: >>> On Tue, Apr 24, 2012 at 7:24 PM, Georg-Johann Lay wrote: Richard Guenther wrote: >> I've run into another issue supporting a 20-bit integer for which I'd >> apprecia

Re: locating unsigned type for non-standard precision

2012-04-25 Thread Georg-Johann Lay
Georg-Johann Lay wrote: > Richard Guenther wrote: >> On Tue, Apr 24, 2012 at 7:24 PM, Georg-Johann Lay wrote: >>> Richard Guenther wrote: >>> > I've run into another issue supporting a 20-bit integer for which I'd > appreciate a hint. With this code: > > typedef long int __attri

Re: locating unsigned type for non-standard precision

2012-04-25 Thread Georg-Johann Lay
Richard Guenther wrote: > On Tue, Apr 24, 2012 at 7:24 PM, Georg-Johann Lay wrote: >> Richard Guenther wrote: >> I've run into another issue supporting a 20-bit integer for which I'd appreciate a hint. With this code: typedef long int __attribute__((__a20__)) int20_t;

Re: locating unsigned type for non-standard precision

2012-04-25 Thread Richard Guenther
On Tue, Apr 24, 2012 at 7:24 PM, Georg-Johann Lay wrote: > Richard Guenther wrote: > >>> I've run into another issue supporting a 20-bit integer for which I'd >>> appreciate a hint.  With this code: >>> >>>   typedef long int __attribute__((__a20__)) int20_t; >>>   int20_t xi; >>>   int20_t addit

Re: locating unsigned type for non-standard precision

2012-04-24 Thread Georg-Johann Lay
Richard Guenther wrote: >> I've run into another issue supporting a 20-bit integer for which I'd >> appreciate a hint. With this code: >> >> typedef long int __attribute__((__a20__)) int20_t; >> int20_t xi; >> int20_t addit () { xi += 0x54321L; } >> >> xi ends up in mode PSImode, which is a

Re: locating unsigned type for non-standard precision

2012-04-24 Thread Peter Bigot
On Tue, Apr 24, 2012 at 9:01 AM, Richard Guenther wrote: > On Tue, Apr 24, 2012 at 3:50 PM, Peter Bigot wrote: >> I've run into another issue supporting a 20-bit integer for which I'd >> appreciate a hint.  With this code: >> >>   typedef long int __attribute__((__a20__)) int20_t; >>   int20_t xi

Re: locating unsigned type for non-standard precision

2012-04-24 Thread Richard Guenther
On Tue, Apr 24, 2012 at 3:50 PM, Peter Bigot wrote: > I've run into another issue supporting a 20-bit integer for which I'd > appreciate a hint.  With this code: > >   typedef long int __attribute__((__a20__)) int20_t; >   int20_t xi; >   int20_t addit () { xi += 0x54321L; } > > xi ends up in mode

locating unsigned type for non-standard precision

2012-04-24 Thread Peter Bigot
I've run into another issue supporting a 20-bit integer for which I'd appreciate a hint.  With this code:   typedef long int __attribute__((__a20__)) int20_t;   int20_t xi;   int20_t addit () { xi += 0x54321L; } xi ends up in mode PSImode, which is a MODE_PARTIAL_INT with 20 bits of precision and