This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: What is "fnspec function type attribute"?
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: FX <fxcoudert at gmail dot com>
- Cc: GCC Development <gcc at gcc dot gnu dot org>, gfortran <fortran at gcc dot gnu dot org>
- Date: Fri, 6 Jun 2014 13:20:36 -0700
- Subject: Re: What is "fnspec function type attribute"?
- Authentication-results: sourceware.org; auth=none
- References: <D9AA3F44-CF35-4915-B152-B952C4B95933 at gmail dot com>
On Fri, Jun 06, 2014 at 10:07:37PM +0200, FX wrote:
> In fortran/trans-decl.c, we have a comment above the code building function decls, saying:
>
>> The SPEC parameter specifies the function argument and return type
>> specification according to the fnspec function type attribute. */
>
> I was away from GCC development for some time, so this is news to me. The syntax is not immediately clear, and neither a Google search nor a grep of the trunk?s numerous .texi files reveals any information. I?m creating new decls, what I am to do with it?
>
That comment was introduce by richi.
2010-05-10 Richard Guenther <rguenther@suse.de>
* trans-decl.c (gfc_build_library_function_decl): Split out
worker to ...
(build_library_function_decl_1): ... this new function.
Set a fnspec attribute if a specification was provided.
(gfc_build_library_function_decl_with_spec): New function.
(gfc_build_intrinsic_function_decls): Annotate internal_pack
and internal_unpack.
You may want to ping him on IRC.
--
Steve