Bug 40211 - 12.2 SSA Operands needs to be updated for tuples
Summary: 12.2 SSA Operands needs to be updated for tuples
Status: NEW
Alias: None
Product: gcc
Classification: Unclassified
Component: tree-optimization (show other bugs)
Version: 4.5.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: documentation
Depends on:
Blocks:
 
Reported: 2009-05-20 22:24 UTC by Andrew Pinski
Modified: 2015-10-20 14:49 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2015-01-03 00:00:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Pinski 2009-05-20 22:24:43 UTC
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.
Comment 1 Andrew Pinski 2015-01-03 22:09:18 UTC
Confirmed, it is 12.2 now: https://gcc.gnu.org/onlinedocs/gccint/SSA-Operands.html#SSA-Operands

tree stmt is wrong, it should be gimple stmt instead.