This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Who wrote gcc manual's trees chapter?



> I'm finding this chapter invaluable, and I would like to thank you.

You're welcome.
>
> Also, I'm finding a few of the functions/macros documented to not be
> defined in the C frontend, only the C++ frontend.

Yes.  Originally, it was only for the C++ front end; then, we changed
the C front end to work more like the C++ front end, so we copied
over the manual, but we didn't mark which things were C++-only.  Also,
a few bits in the manual are probably no longe true.

> So far I've found:
> TYPE_PTR_P (tree)

You can just use TREE_CODE (x) == POINTER_TYPE in C.

> TYPE_BUILT_IN (tree)

There's not really anything comparable in C.

-- 
Mark Mitchell                mark@codesourcery.com
CodeSourcery, LLC            http://www.codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]