This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[v3] disable concept checking code
- To: gcc-patches at gcc dot gnu dot org, pedwards at disaster dot jaj dot com
- Subject: [v3] disable concept checking code
- From: Benjamin Kosnik <bkoz at redhat dot com>
- Date: Tue, 27 Mar 2001 11:24:24 -0800
Everybody seems to agree on a bunch of things:
1) concept checking is way cool, in theory
2) the current implementation is buggy
3) the current implementation slows down compiles and generates
un-necessary extra code. Lame.
So, it's off by default, based on the voting (2/1) of the libstdc++
maintainers and user feedback.
-benjamin
2001-03-27 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/c++config (_STL_USE_CONCEPT_CHECKS): Disable by default.
Index: include/bits/c++config
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/include/bits/c++config,v
retrieving revision 1.16
diff -c -p -r1.16 c++config
*** c++config 2001/03/23 20:02:03 1.16
--- c++config 2001/03/27 19:21:55
***************
*** 63,74 ****
# define __STL_UITHREADS
#endif
! // Concept-checking code is on by default unless users define
! // the _STL_NO_CONCEPT_CHECKS hook.
! //#define _STL_NO_CONCEPT_CHECKS 1
! #if !defined(_STL_NO_CONCEPT_CHECKS)
! # define __STL_USE_CONCEPT_CHECKS
! #endif
// This is also a user hook, but via -f[no-]exceptions, not direct #defines.
#ifdef __EXCEPTIONS
--- 63,71 ----
# define __STL_UITHREADS
#endif
! // Concept-checking code is off by default unless users define
! // the _STL_USE_CONCEPT_CHECKS hook.
! //#define _STL_USE_CONCEPT_CHECKS 1
// This is also a user hook, but via -f[no-]exceptions, not direct #defines.
#ifdef __EXCEPTIONS