doc/extend.texi: Discourage use of the optimize attribute
authorMarkus Trippelsdorf <markus@trippelsdorf.de>
Thu, 28 Apr 2016 16:25:00 +0000 (16:25 +0000)
committerMarkus Trippelsdorf <trippels@gcc.gnu.org>
Thu, 28 Apr 2016 16:25:00 +0000 (16:25 +0000)
* doc/extend.texi (Common Function Attributes) [optimize]:
Discourage use of the optimize attribute.

From-SVN: r235580

gcc/ChangeLog
gcc/doc/extend.texi

index c5cfea6bf9b7fb05c734e7dcd654051f37b98696..52be94c01052674606995e6e83bc748d852c332d 100644 (file)
@@ -1,3 +1,8 @@
+2016-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de> 
+
+       * doc/extend.texi (Common Function Attributes) [optimize]:
+       Discourage use of the optimize attribute.
+
 2016-04-28  Bill Seurer  <seurer@linux.vnet.ibm.com>
 
        * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
index a5a8b23df275b70f047a3af9f79fa18a8542dcc0..3c8b8d735539640f006f81a769032e055b154b01 100644 (file)
@@ -3026,10 +3026,8 @@ that affect more than one function.
 @xref{Function Specific Option Pragmas}, for details about the
 @samp{#pragma GCC optimize} pragma.
 
-This can be used for instance to have frequently-executed functions
-compiled with more aggressive optimization options that produce faster
-and larger code, while other functions can be compiled with less
-aggressive options.
+This attribute should be used for debugging purposes only.  It is not
+suitable in production code.
 
 @item pure
 @cindex @code{pure} function attribute