[patch, libfortran] Use macros for dtype in array intrinsics

Paul Richard Thomas paul.richard.thomas@gmail.com
Sun Jan 7 12:55:00 GMT 2018


Hi Thomas,

That was well spotted by Steve!

OK for trunk.

Thanks

Paul


On 7 January 2018 at 12:23, Thomas Koenig <tkoenig@netcologne.de> wrote:
> Am 06.01.2018 um 18:45 schrieb Thomas Koenig:
>>
>> Hello world,
>>
>> the attached patch removes explicit use of dtype in the
>> array intrinsics, replacing them by macros instead.
>> Functionally, this patch changes nothing.
>
>
> Steve pointed out on IRC that
>
> +#define GFC_DTYPE_IS_UNSET(a) (unlikely((a)->dtype) == 0)
>
> should be
>
> +#define GFC_DTYPE_IS_UNSET(a) (unlikely((a)->dtype == 0))
>
> OK with that change?
>
> Regards
>
>         Thomas



-- 
"If you can't explain it simply, you don't understand it well enough"
- Albert Einstein



More information about the Gcc-patches mailing list