This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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: [v3] abi docs, testsuite


>AFAICT it's defined in c-cppbuiltin.c since 3.4, and its value is affected
>by -fabi-version=n

Kay.

>I was going to suggest something like this, although I think it could be
>said in a clearer way:
>
>    This macro was defined in the file "lang-specs.h" in the gcc/cp directory.
>    Later versions defined it in "c-common.c" in the gcc directory, and from
>    G++ 3.4 it is defined in c-cppbuiltin.c and its value determined by the
>    -fabi-version=n command line option.
>
>    It is versioned as follows:
>    gcc-3.0.x: 100
>    gcc-3.1.x: 100 (Error, should be 101)
>    gcc-3.2.x: 102
>    gcc-3.3.x:        102

This part is great.

>    gcc-3.4.x (n=1):  102
>    gcc-3.4.x (n>1): 1000+n

This is wrong: 3.4.0 has 1002. You can check this by doing 

cpp -dM foo.cc | grep ABI

We'll add the 3.4.x bits as they are released.

>> +     Incremental bumping of a library pre-defined macro,
>> +     _GLIBCPP_VERSION. This macro is defined as the released version of
>> +     the library, as a string literal. This is only implemented in
>> +     gcc-3.1.0 releases and higher, and is deprecated in 3.4.
>
>It's name changed (CPP -> CXX) as well as being deprecated.
>
>> +     All C++ includes are installed in include/c++, then nest in a
>> +     directory hierarchy corresponding to the C++ compiler's released
>> +     version. This version corresponds to the variable "gcc_version" in
>> +     "libstdc++-v3/acinclude.m4," and more details can be found in that
>> +     file's macro GLIBCPP_CONFIGURE.
>
>Again, CPP -> CXX
>
>There are also some XHTML fixes that I'll do after you've committed it
>and I'm looking for something exciting to do  ;-)

Yeah...... if you could fix up all this stuff I'd appreciate it. I'm kind of burnt on this right now.

best, 
benjamin


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