While there is a reference to -ftree-dse being turned on with -O optimization in both the manpage and the online docs (see e.g. http://gcc.gnu.org/onlinedocs/gcc-4.2.0/gcc/Optimize-Options.html#Optimize-Options), that is the only reference to this option. The specific behavior of this option does not appear in either the manpage or the online docs.
Confirmed to exist in 4.2.0 and 4.2.2 docsets. Maybe more? -- Summary: tree-dse / -ftree-dse behavior not documented Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: minor Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: metallurge at gmail dot com GCC build triplet: 4.2.0 GCC host triplet: 4.2.0 GCC target triplet: 4.2.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33798