This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Results for g++ 3.1 application testing on i686-pc-linux-gnu
- From: Gabriel Dos Reis <gdr at codesourcery dot com>
- To: Benjamin Kosnik <bkoz at redhat dot com>
- Cc: Gabriel Dos Reis <gdr at codesourcery dot com>, stephen dot webb at bregmasoft dot com, gcc at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org
- Date: 05 Mar 2002 23:03:59 +0100
- Subject: Re: Results for g++ 3.1 application testing on i686-pc-linux-gnu
- Organization: CodeSourcery, LLC
- References: <Pine.SOL.3.91.1020305125913.5142A-100000@taarna.cygnus.com>
Benjamin Kosnik <bkoz@redhat.com> writes:
| > Sigh. The right fix is to replace the declaration
| >
| > extern const int __WORD_BIT;
| >
| > in bits/stl_bvector.h with
| >
| > const int __WORD_BIT = int(CHAR_BIT*sizeof(unsigned int));
| >
| > and ditch that line in src/stl-inst.cc.
|
| Hmmm. I take issue with this.
|
| I think the real, best solution would be to remove all these goofy global
| constants from the SGI STL, and put them in base classes where
| possible.......
Agreed.
| If that's not always possible I suppose Gaby's suggestion is the
| next-best thing. It's annoying to me to see, for every header with
|
| const int l = 5;
|
| in it, this in every object file
|
| 00000000 r l
Then, may I propose to turn __WORD_BIT into an enum so as to meet the
zero-overhead criterion.
-- Gaby