This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
[AST-optimizer-branch] Double chaining statements (proposal)
- From: Sebastian Pop <m1sp at csc dot liv dot ac dot uk>
- To: dnovillo at redhat dot com, nathan at codesourcery dot com
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 15 Apr 2002 17:46:44 +0100
- Subject: [AST-optimizer-branch] Double chaining statements (proposal)
Hi,
C and C++ statements don't use 'type' field : this field is used only
in expression nodes.
struct tree_common
{
tree chain;
tree type;
void *aux;
...
}
We could use it to hold information about the previous statement
and make analysis and transformation of statements simpler.
I propose to complete the tree interface with the following macro :
#define TREE_PREV(STMT) TREE_TYPE (STMT)
and either modify front-ends, or introduce this information during
the simplify pass.
Comments, suggestions, ... ?
Seb.