This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: c++ implies -fno-builtin -- why??
- From: Roger Sayle <roger at eyesopen dot com>
- To: Paul Koning <pkoning at equallogic dot com>
- Cc: <gcc at gcc dot gnu dot org>
- Date: Fri, 12 Jul 2002 19:58:45 -0600 (MDT)
- Subject: 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