Re: [PATCH] Transform more gmp/mpfr uses to use RAII

2023-04-19 Thread Jonathan Wakely via Gcc-patches
On Wed, 19 Apr 2023 at 10:36, Richard Biener wrote: > > The following picks up the coccinelle generated patch from Bernhard, > leaving out the fortran frontend parts and fixing up the rest. > In particular both gmp.h and mpfr.h contain macros like > #define mpfr_inf_p(_x) ((_x)->_mpfr_exp ==

[PATCH] Transform more gmp/mpfr uses to use RAII

2023-04-19 Thread Richard Biener via Gcc-patches
The following picks up the coccinelle generated patch from Bernhard, leaving out the fortran frontend parts and fixing up the rest. In particular both gmp.h and mpfr.h contain macros like #define mpfr_inf_p(_x) ((_x)->_mpfr_exp == __MPFR_EXP_INF) for which I add operator-> overloads to the a