This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH,fortran] Add pre-defined macros for different available types
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: fortran at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Tue, 25 Dec 2018 13:49:47 -0800
- Subject: Re: [PATCH,fortran] Add pre-defined macros for different available types
- References: <20181225214410.GA98851@troutmask.apl.washington.edu>
- Reply-to: sgk at troutmask dot apl dot washington dot edu
> + }
> +
> + for (int_info = gfc_integer_kinds; int_info->kind != 0; int_info++)
> + {
> + if (int_info->kind == 1)
> + cpp_define (cpp_in, "__GFC_INT_1__=1");
> + if (int_info->kind == 2)
> + cpp_define (cpp_in, "__GFC_INT_2__=1");
> + if (int_info->kind == 8)
> + cpp_define (cpp_in, "__GFC_INT_8__=1");
> + if (int_info->kind == 8)
yes, that's suppose to be 16.
> + cpp_define (cpp_in, "__GFC_INT_16__=1");
> + }
> +
> + for (real_info = gfc_real_kinds; real_info->kind != 0; real_info++)
> + {
> + if (real_info->kind == 10)
> + cpp_define (cpp_in, "__GFC_REAL_10__=1");
> + if (real_info->kind == 16)
> + cpp_define (cpp_in, "__GFC_REAL_16__=1");
> }