This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [PATCH] libgfortran: Use __builtin_mul_overflow in xmallocarray
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: Janne Blomqvist <blomqvist dot janne at gmail dot com>
- Cc: gcc-patches at gcc dot gnu dot org, fortran at gcc dot gnu dot org
- Date: Fri, 14 Jun 2019 08:07:36 -0700
- Subject: Re: [PATCH] libgfortran: Use __builtin_mul_overflow in xmallocarray
- References: <20190614100848.31732-1-blomqvist.janne@gmail.com>
- Reply-to: sgk at troutmask dot apl dot washington dot edu
On Fri, Jun 14, 2019 at 01:08:48PM +0300, Janne Blomqvist wrote:
> As GCC now provides builtins for doing integer overflow checking, lets
> use it when checking for overflow in xmallocarray.
>
> Regtested on x86_64-pc-linux-gnu, Ok for trunk?
>
OK
--
Steve