Talk:GCC optimization

I find this page very instructive, and I just want to share/discuss a couple observations about the evolution of this advice. First, it seems that this page is intended to serve users at both beginner (it takes the time to explain what CFLAGS are) and advanced (it is aimed at optimization and warns of unintended consequences of failed attempts at optimization) levels of familiarity with the subject. Second, I note that the Handbook now refers all users to this page, whereas I think it used to refer users to Safe_CFLAGS instead of this. Comparing this page with the Safe_CFLAGS page, I see that there is different advice about how to get gcc to tell you what CFLAGS you should set.

Recommendation: perhaps, if the Safe_CFLAGS page is relevant, some of the less familiar users would be better served by it than the more detailed discussion on this page, and we could include in this page a reference to the Safe_CFLAGS page.

See also this forum discussion.