This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH][C++] Fix PR53605


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]