This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Avoid UB in the Ada FE
- From: Eric Botcazou <ebotcazou at adacore dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 23 Jun 2017 19:08:57 +0200
- Subject: Re: [PATCH] Avoid UB in the Ada FE
- Authentication-results: sourceware.org; auth=none
- References: <20170622102850.GX2123@tucnak>
> Another option would be to change atomic_access_required_p to add
> *sync = false;
> before the first return, or to initialize bool sync = false; at the
> definition.
Yes, let's do the initialization at the definition (no need to retest).
--
Eric Botcazou