This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/40211] New: 13.2 SSA Operands needs to be updated for tuples
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 May 2009 22:24:44 -0000
- Subject: [Bug tree-optimization/40211] New: 13.2 SSA Operands needs to be updated for tuples
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
While helping a new developer here at Sony, I noticed that the "13.2 SSA
Operands" section in the GCC's internals manual still refers to statements that
were tree types.
For an example:
If you wish to iterate over some or all operands, use the
FOR_EACH_SSA_{USE,DEF,TREE}_OPERAND iterator. For example, to print all the
operands for a statement:
void
print_ops (tree stmt)
{
ssa_op_iter;
tree var;
FOR_EACH_SSA_TREE_OPERAND (var, stmt, iter, SSA_OP_ALL_OPERANDS)
print_generic_expr (stderr, var, TDF_SLIM);
}
That refers to tree statement rather than gimple_stmt.
There are more examples in this section which needs to be updated too.
--
Summary: 13.2 SSA Operands needs to be updated for tuples
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Keywords: documentation
Severity: normal
Priority: P3
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40211