From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mengyan1223.wang (mengyan1223.wang [89.208.246.23]) by sourceware.org (Postfix) with ESMTPS id BE7D63858C27 for ; Sat, 12 Mar 2022 08:19:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org BE7D63858C27 Received: from [IPv6:240e:358:11d9:b600:dc73:854d:832e:4] (unknown [IPv6:240e:358:11d9:b600:dc73:854d:832e:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384)) (Client did not present a certificate) (Authenticated sender: xry111@mengyan1223.wang) by mengyan1223.wang (Postfix) with ESMTPSA id C362B65AFD; Sat, 12 Mar 2022 03:19:10 -0500 (EST) Message-ID: Subject: Re: Fortify_source and stack-protector-strong From: Xi Ruoyao To: Reinoud Koornstra Cc: Florian Weimer , Reinoud Koornstra via Gcc-help Date: Sat, 12 Mar 2022 16:19:04 +0800 In-Reply-To: References: <87o82ok616.fsf@oldenburg.str.redhat.com> <2a574a7a0dbb4f1ef4472d2a43b029f0ceca9065.camel@mengyan1223.wang> <204cd10c9d34c6c798e701f1d990c120c2d77897.camel@mengyan1223.wang> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.4 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3031.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, JMQ_SPF_NEUTRAL, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Mar 2022 08:19:16 -0000 On Fri, 2022-03-11 at 11:01 -0800, Reinoud Koornstra wrote: > One more question, for FORTIFY_SOURCE=2, can I use either -O1 or -O2 > optimization flags? > I noticed it doesn't like -Os. Thanks, Anything other than -O0 will work. But you should have asked this question in a Glibc mail list because _FORTIFY_SOURCE is a feature of Glibc, not GCC. -- Xi Ruoyao School of Aerospace Science and Technology, Xidian University