From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Thu, 12 Aug 2010 14:24:39 +0400 From: "Dmitry V. Levin" To: ALT Linux Team development discussions Message-ID: <20100812102439.GB10056@wo.int.altlinux.org> Mail-Followup-To: ALT Linux Team development discussions References: <20100803115442.GB12310@mw.office.seiros.ru> <20100811180912.GA6072@atlas.home> <4C630ADE.8050100@tangramltd.com> <201008121402.22395.zerg@altlinux.org> <20100812101926.GA13513@imap.altlinux.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="lEGEL1/lMxI0MVQ2" Content-Disposition: inline In-Reply-To: <20100812101926.GA13513@imap.altlinux.org> X-fingerprint: FE4C 93AB E19A 2E4C CB5D 3E4E 7CAB E6AC 9E35 361E Subject: Re: [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:24:40 -0000 Archived-At: List-Archive: List-Post: --lEGEL1/lMxI0MVQ2 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Aug 12, 2010 at 02:19:26PM +0400, Alexey Tourbin wrote: > On Thu, Aug 12, 2010 at 02:02:17PM +0400, Sergey V Turchin wrote: > > man gcc =D0=D2=CF -O2 > > "NOTE: In ALT Linux gcc 4.1.1-alt9 and later versions, -D_FORTIFY_SOURC= E=3D2 is=20 > > set by default, and is activated when -O is set to 2 or higher. >=20 > 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... >=20 > I felt like fortification and optimization are really different > compiler features. To me, it's unclear why -O2 should trigger > fortification. Yes, that's odd, but _FORTIFY_SOURCE is implemented in glibc header files this way. --=20 ldv --lEGEL1/lMxI0MVQ2 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAkxjy+cACgkQfKvmrJ41Nh4OewCeKTRh4/cR01fbNxFghhR5e7E2 HEgAoIZWEXAliNMOHkOmCw7vytFiGQ7p =Hhl/ -----END PGP SIGNATURE----- --lEGEL1/lMxI0MVQ2--