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: Results for g++ 3.1 application testing on i686-pc-linux-gnu


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


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