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 <xry111@xxxxxxxxxxxxxxxx> School of Aerospace Science and Technology, Xidian University