This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [gomp] implement a handfull of easy directives
- From: Daniel Berlin <dberlin at dberlin dot org>
- To: Ian Lance Taylor <ian at airs dot com>
- Cc: Richard Henderson <rth at redhat dot com>, gcc at gcc dot gnu dot org
- Date: Thu, 22 Sep 2005 09:39:52 -0400
- Subject: Re: [gomp] implement a handfull of easy directives
- References: <20050921234917.GA10871@redhat.com> <m31x3hu3bp.fsf@gossamer.airs.com>
> The builtins table is initialized with a separate .def file, but it
> boils down to initializers this:
>
> { code, "__builtin_name", C2_INT,
> { C2_INT, C2_VPTR, C2_NONE, C2_NONE, C2_NONE, C2_NONE } },
>
> This way I only have to write the type in one place, I only create the
> function types I need, and the types are cached so I don't create the
> same type more than once.
>
> Much simpler in the long run, I think.
How are you handling putting attributes on these builtin functions?