This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: command option
- To: Joe Buck <jbuck at synopsys dot COM>, Ping Tan <tanp at cas dot mcmaster dot ca>
- Subject: Re: command option
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Fri, 22 Jun 2001 15:04:33 -0700
- cc: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
--On Friday, June 22, 2001 11:52:45 AM -0700 Joe Buck <jbuck@synopsys.COM>
wrote:
>
>> Is there any command option for gcc I can use so that I can get the tree
>> representation for a given input C program? (That is, I want use gcc as a
>> parser only.)
>
> For C++, GCC turns an entire function into a tree. However, for C it does
> not; pieces of functions (generally at the level of an assignment) get
> mapped to RTL. So GCC never builds a tree for the entire function.
No longer true; C and C++ are treated in the same way in GCC 3.0.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com