From: trippels Date: Thu, 28 Apr 2016 16:25:00 +0000 (+0000) Subject: doc/extend.texi: Discourage use of the optimize attribute X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b4160bdcdf5822b7809a828c52edcdc50f90ee4b;p=thirdparty%2Fgcc.git doc/extend.texi: Discourage use of the optimize attribute * doc/extend.texi (Common Function Attributes) [optimize]: Discourage use of the optimize attribute. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@235580 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c5cfea6bf9b7..52be94c01052 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-04-28 Markus Trippelsdorf + + * doc/extend.texi (Common Function Attributes) [optimize]: + Discourage use of the optimize attribute. + 2016-04-28 Bill Seurer * 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 a5a8b23df275..3c8b8d735539 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