This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Where is OMP_CLAUSE_CHECK defined?
On Feb 11, 2012, at 12:38 PM, Amittai Aviram wrote:
> On Feb 10, 2012, at 2:35 PM, Ian Lance Taylor wrote:
>
>> Amittai Aviram <amittai.aviram@yale.edu> writes:
>>
>>> But I cannot find any definition for OMP_CLAUSE_CHECK. Where does GCC define this macro? Thanks.
>>
>> It is defined in the generated file tree-check.h. After building gcc,
>> look at gcc/tree-check.h in your build directory. tree-check.h is built
>> by the gencheck program.
>>
>> At present the definition is
>>
>> #define OMP_CLAUSE_CHECK(t) TREE_CHECK (t, OMP_CLAUSE)
>>
>> Ian
>
> OK, I see—thanks! Now I am wondering about the "tree" type. Lots of files use it, including gcc/gcc/tree.h, but I haven't been able to find its definition so far. Any hints? Thanks again!
>
> Amittai Aviram
> PhD Student in Computer Science
> Yale University
> 646 483 2639
> amittai.aviram@yale.edu
> http://www.amittai.com
OOPS! I just found it, in gcc/gcc/coretypes.h:
union tree_node;
typedef union tree_node * tree;
But where's the definition of union tree_node? Thanks!
Amittai Aviram
PhD Student in Computer Science
Yale University
646 483 2639
amittai.aviram@yale.edu
http://www.amittai.com