[Bug c/57821] 'array is too large' error is missing when sizetype overflows
dave.anglin at bell dot net
gcc-bugzilla@gcc.gnu.org
Thu Jul 25 14:09:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57821
--- Comment #9 from dave.anglin at bell dot net ---
On 25-Jul-13, at 6:56 AM, amylaar at gcc dot gnu.org wrote:
> hwint.h says that HOST_WIDE_INT should be 64 bit when targeting a
> machine with
> 64 bit size_t. You can insure that by setting need_64bit_hwint in
> gcc/config.gcc / libcpp/configure.ac . Although the former has a
> different
> description what it's for. So either the comment there is lacking, or
> the comment in hwint.h just says how to paper over bugs in various (?)
> places in the compiler that don't use the highpart of an INTEGER_CST
> for
> what it's for.
The 32-bit linux and hpux targets have a 32-bit size_t and the error
occurs with a
native build.
Dave
--
John David Anglin dave.anglin@bell.net
More information about the Gcc-bugs
mailing list