From 893100c3fa9b3049ce84dcc0c1a839ddc7a21387 Mon Sep 17 00:00:00 2001 From: Markus Trippelsdorf Date: Thu, 28 Apr 2016 16:25:00 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/doc/extend.texi | 6 ++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c5cfea6bf9b..52be94c0105 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 a5a8b23df27..3c8b8d73553 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 -- 2.30.2