This is the mail archive of the
mailing list for the GCC project.
Re: wide-int, ada
- From: Eric Botcazou <ebotcazou at adacore dot com>
- To: Kenneth Zadeck <zadeck at naturalbridge dot com>
- Cc: gcc-patches at gcc dot gnu dot org, Mike Stump <mikestump at comcast dot net>
- Date: Tue, 26 Nov 2013 10:18:29 +0100
- Subject: Re: wide-int, ada
- Authentication-results: sourceware.org; auth=none
- References: <0075C6DB-B432-4E6F-8A48-3AE0C4D842FE at comcast dot net> <1464599 dot QpNUskFgRu at polaris> <5293FE59 dot 6090801 at naturalbridge dot com>
> you are correct - this was an incorrect change. I believe that the
> patch below would be correct, but it is impossible to test it because (i
> believe) that gcc no longer works if the host_bits_per_wide_int is 32.
> I could be wrong about this but if i am correct, what do you want me to do?
While you're right that most mainstream architectures now require a 64-bit
HWI, not all of them do according to config.gcc, so I don't think that this
path is entirely dead yet. I'll carry out the testing once we agree on the
The checks were written that way in UI_From_gnu to be efficient, so can't we
find something more efficient than wi::gtu_p <wi::lrshift> ? We need to
return No_Uint on Input not representing a 64-bit signed integer, can't this
be done by testing the number of HWIs in Input and its sign bit if its type is