From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Thu, 12 Aug 2010 14:19:26 +0400 From: Alexey Tourbin To: ALT Linux Team development discussions Message-ID: <20100812101926.GA13513@imap.altlinux.org> References: <20100803115442.GB12310@mw.office.seiros.ru> <20100811180912.GA6072@atlas.home> <4C630ADE.8050100@tangramltd.com> <201008121402.22395.zerg@altlinux.org> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <201008121402.22395.zerg@altlinux.org> Subject: [devel] -D_FORTIFY_SOURCE=2 X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ALT Linux Team development discussions List-Id: ALT Linux Team development discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Aug 2010 10:19:26 -0000 Archived-At: List-Archive: List-Post: On Thu, Aug 12, 2010 at 02:02:17PM +0400, Sergey V Turchin wrote: > man gcc про -O2 > "NOTE: In ALT Linux gcc 4.1.1-alt9 and later versions, -D_FORTIFY_SOURCE=2 is > set by default, and is activated when -O is set to 2 or higher. BTW, I find this incomprehensible. Is it really enabled by default, or is it only enabled with -O2 and higher? Leaving aside the fact of me being curious about whether -Os is higher than -O2... I felt like fortification and optimization are really different compiler features. To me, it's unclear why -O2 should trigger fortification.