This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: c++ implies -fno-builtin -- why??


> In digging through the docs I ran across the statement that C++
> ignores -fbuiltin and always runs with -fno-builtin.

This is historical.  GCC builtin functions were temporarily disabled
for the GCC 3.0.x releases of g++ to solve C++ conformance issues.
For example, with the 2.95 compiler g++ didn't issue a diagnostic
if a user called std::strlen without first prototyping it.  These
issues were fixed in time for GCC 3.1.x, which re-enabled builtins.

There is of course the possibility that not all of the documentation
was updated to reflect the fact that c++ now recognizes builtins.
Where did you come across the statement?

Roger
--
Roger Sayle,                         E-mail: roger@eyesopen.com
OpenEye Scientific Software,         WWW: http://www.eyesopen.com/
Suite 1107, 3600 Cerrillos Road,     Tel: (+1) 505-473-7385
Santa Fe, New Mexico, 87507.         Fax: (+1) 505-473-0833


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]