diff options
author | Markus Trippelsdorf <markus@trippelsdorf.de> | 2016-04-28 16:25:00 +0000 |
---|---|---|
committer | Markus Trippelsdorf <trippels@gcc.gnu.org> | 2016-04-28 16:25:00 +0000 |
commit | 893100c3fa9b3049ce84dcc0c1a839ddc7a21387 (patch) | |
tree | feab19f3d87788ed2b5de228a319c90451942832 | |
parent | bf6b9e5d1c83e6e499a23758e92a6d8906bb0f52 (diff) | |
download | gcc-893100c3fa9b3049ce84dcc0c1a839ddc7a21387.zip gcc-893100c3fa9b3049ce84dcc0c1a839ddc7a21387.tar.gz gcc-893100c3fa9b3049ce84dcc0c1a839ddc7a21387.tar.bz2 |
doc/extend.texi: Discourage use of the optimize attribute
* doc/extend.texi (Common Function Attributes) [optimize]:
Discourage use of the optimize attribute.
From-SVN: r235580
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/doc/extend.texi | 6 |
2 files changed, 7 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c5cfea6..52be94c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index a5a8b23..3c8b8d7 100644 --- a/gcc/doc/extend.texi +++ b/gcc/doc/extend.texi @@ -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 |