Re: -fno-builtin not preventing __builtin___snprintf_chk in gcc 11.2.0-19ubuntu1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 2022-08-21 at 19:39 -0700, Reid Wahl via Gcc-help wrote:

For the title: -fno-builtin only prevents gcc to convert foo() to
__builtin_foo().  If you write __builtin_foo() directly built-in will be
used with or without -fno-builtin.

The remaining discussion is not related to GCC anyway. _FORTIFY_SOURCE
is a Glibc (not GCC) feature, and it's just enabled by default because
the distro is *too* smart...  I completely agree to add -
D_FORTIFY_SOURCE when they build their .deb packages, but hard wiring
this into GCC is just puzzling new users and causing them to wrongly
believe this was a "feature" of vanilla GCC.  To make things worse, many
people use Ubuntu as their first Linux distro...

-- 
Xi Ruoyao <xry111@xxxxxxxxxxx>
School of Aerospace Science and Technology, Xidian University




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux