This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH][C++] Fix PR53605
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Richard Guenther <rguenther at suse dot de>
- Cc: gcc-patches at gcc dot gnu dot org, jason at redhat dot com
- Date: Sat, 23 Jun 2012 06:45:57 -0700
- Subject: Re: [PATCH][C++] Fix PR53605
- References: <Pine.LNX.4.64.1206111413230.29541@jbgna.fhfr.qr>
On Mon, Jun 11, 2012 at 5:15 AM, Richard Guenther <rguenther@suse.de> wrote:
>
> When I changed empty arrays domain to use a signed sizetype [0, -1]
> domain mangling of a empty-array-type broke because mangling adds
> an unsigned one to the signed -1 which causes an ICE (I chose to
> do that instead of shifting the range to [1, 0] because much more
> code relies on a zero lower bound ...).
>
> The following fixes that by using double-ints for the arithmetic
> and thus also does not generate a not needed tree node.
>
> Bootstrapped and tested on x86_64-unknown-linux-gnu, ok?
>
> Thanks,
> Richard.
>
> 2012-06-11 ?Richard Guenther ?<rguenther@suse.de>
>
> ? ? ? ?PR c++/53616
> ? ? ? ?* mangle.c (write_array_type): Use double-ints for array domain
> ? ? ? ?arithmetic.
>
This caused:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53752
--
H.J.