This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Who wrote gcc manual's trees chapter?
- To: "svref at yahoo dot com" <svref at yahoo dot com>, "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Subject: Re: Who wrote gcc manual's trees chapter?
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Sun, 09 Sep 2001 14:13:50 -0700
> 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