This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
[patch] avoid ABI warnings on arm when running the libstdc++v3 testsuite
- From: Matthias Klose <doko at ubuntu dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>, "libstdc++ at gcc dot gnu dot org" <libstdc++ at gcc dot gnu dot org>
- Date: Thu, 14 Jan 2010 18:54:46 +0100
- Subject: [patch] avoid ABI warnings on arm when running the libstdc++v3 testsuite
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
Attachment:
arm.diff
Description: Text document