This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [D] Remove unchecked to_constant in VECTOR_TYPE handling
- From: Jeff Law <law at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org, ibuclaw at gdcproject dot org, richard dot sandiford at arm dot com
- Date: Mon, 4 Nov 2019 09:09:37 -0700
- Subject: Re: [D] Remove unchecked to_constant in VECTOR_TYPE handling
- References: <mpta79bwvpn.fsf@arm.com>
On 11/4/19 7:40 AM, Richard Sandiford wrote:
> The SVE port now tries to register variable-length VECTOR_TYPEs
> at start-up, so it's no longer possible to use the asserting
> to_constant on the number of vector elements. This patch punts
> on variable element counts instead, just like we do for other
> things that the frontend doesn't recognise.
>
> The brace indentation matches the surrounding style.
>
> Tested on aarch64-linux-gnu. OK to install?
>
> Richard
>
>
> 2019-11-04 Richard Sandiford <richard.sandiford@arm.com>
>
> gcc/d/
> * d-builtins.cc (build_frontend_type): Cope with variable
> TYPE_VECTOR_SUBPARTS.
OK
jeff