This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: tcc_statement vs. tcc_expression in the C++ frontend
- From: Gabriel Dos Reis <gdr at cs dot tamu dot edu>
- To: Ian Lance Taylor <ian at airs dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: 23 Apr 2005 12:56:50 -0500
- Subject: Re: tcc_statement vs. tcc_expression in the C++ frontend
- Organization: Texas A&M University, Department of Computer Science
- References: <20050423160655.13792.qmail@gossamer.airs.com>
Ian Lance Taylor <ian@airs.com> writes:
| The description of tcc_statement in tree.h says "A statement
| expression, which have side effects but usually no interesting value."
|
| There are a number of entries in cp/cp-tree.def which are marked as
| tcc_expression, although they seem to me to be better described as
| tcc_statement, to wit:
|
| IF_STMT
| WHILE_STMT
| DO_STMT
| FOR_STMT
| BREAK_STMT
| CONTINUE_STMT
| SWITCH_STMT
|
| and perhaps also:
|
| EH_SPEC_BLOCK
| USING_STMT
| CLEANUP_STMT
| TRY_BLOCK
| HANDLER
They all should be tcc_statement, now.
I believe they were marked class 'e' back then when we did not have
a clearly marked class for statements.
-- Gaby