[patch] avoid ABI warnings on arm when running the libstdc++v3 testsuite

Matthias Klose doko@ubuntu.com
Thu Jan 14 17:55:00 GMT 2010


when running the libstdc++v3 testsuite on arm-linux-gnueabi, a lot of test cases 
fail with excess errors, e.g.

   FAIL: 17_intro/using_namespace_std_tr1_neg.cc (test for excess errors)

Excess errors:
In file included from 
/home/doko/gcc/4.4/gcc-4.4-4.4.2/build/arm-linux-gnueabi/libstdc++-v3/include/bits/basic_string.h:2562,
                  from 
/home/doko/gcc/4.4/gcc-4.4-4.4.2/build/arm-linux-gnueabi/libstdc++-v3/include/string:53,
                  from 
/home/doko/gcc/4.4/gcc-4.4-4.4.2/build/arm-linux-gnueabi/libstdc++-v3/include/bitset:49,
                  from 
/home/doko/gcc/4.4/gcc-4.4-4.4.2/src/libstdc++-v3/testsuite/17_intro/using_namespace_std_tr1_neg.cc:23:
/home/doko/gcc/4.4/gcc-4.4-4.4.2/build/arm-linux-gnueabi/libstdc++-v3/include/ext/string_conversions.h: 
In instantiation of '_String __gnu_cxx::__to_xstring(int (*)(_CharT*, size_t, 
const _CharT*, __va_list), size_t, const _CharT*, ...) [with _String = 
std::basic_string<char, std::char_traits<char>, std::allocator<char> >, _CharT = 
char]':
/home/doko/gcc/4.4/gcc-4.4-4.4.2/build/arm-linux-gnueabi/libstdc++-v3/include/bits/basic_string.h:2610: 
   instantiated from here
/home/doko/gcc/4.4/gcc-4.4-4.4.2/build/arm-linux-gnueabi/libstdc++-v3/include/ext/string_conversions.h:90: 
note: the mangling of 'va_list' has changed in GCC 4.4

The attached patch runs the testsuite with -Wno-abi on arm targets. Ok for the 
trunk and the 4.4 branch? Should the target be more restricted?

   Matthias
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: arm.diff
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20100114/0ede04e4/attachment.ksh>


More information about the Libstdc++ mailing list