This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Fix oversight in gimplifier
- From: Richard Biener <richard dot guenther at gmail dot com>
- To: Eric Botcazou <ebotcazou at adacore dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 19 Jun 2018 11:18:19 +0200
- Subject: Re: [patch] Fix oversight in gimplifier
- References: <27810203.vj4aXM48tj@polaris>
On Tue, Jun 19, 2018 at 10:11 AM Eric Botcazou <ebotcazou@adacore.com> wrote:
>
> Hi,
>
> as spotted by Richard B., there is an oversight in the implementation of
> CONSTRUCTOR_NO_CLEARING in the gimplifier: it may be overruled depending on
> the outcome of the clearing heuristics.
>
> Tested on x86-64/Linux, OK for the mainline? Can I put this on the 8 and 7
> branches too (only the Ada compiler sets the flag at the moment)?
OK everywhere.
Thanks,
Richard.
>
> 2018-06-19 Eric Botcazou <ebotcazou@adacore.com>
>
> * gimplify.c (gimplify_init_constructor): Really never clear for an
> incomplete constructor if CONSTRUCTOR_NO_CLEARING is set.
>
>
> 2018-06-19 Eric Botcazou <ebotcazou@adacore.com>
>
> * gnat.dg/aggr24.adb: New test.
> * gnat.dg/aggr24_pkg.ad[sb]: New helper.
>
> --
> Eric Botcazou