This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [v3] testsuite/ext cleanups
- From: "Aaron W. LaFramboise" <aaronavay62 at aaronwl dot com>
- To: Benjamin Kosnik <bkoz at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org
- Date: Sun, 24 Oct 2004 12:58:48 -0500
- Subject: Re: [v3] testsuite/ext cleanups
- References: <20041014163359.5ad380c3.bkoz@redhat.com>
Benjamin Kosnik wrote:
> tested x86/linux
>
> 2004-10-14 Benjamin Kosnik <bkoz@redhat.com>
>
> * testsuite/ext/headers.cc: Add includes.
> * testsuite/ext/hash_map.cc: Move to...
> * testsuite/ext/hash_map/1.cc: ...here.
> * testsuite/ext/14648.cc: Move to...
> * testsuite/ext/hash_map/14648.cc: ...here.
> * testsuite/ext/hash_map/instantiate.cc: Add.
> * testsuite/ext/hash_set.cc: Move to...
> * testsuite/ext/hash_set/1.cc: ...here.
> * testsuite/ext/hash_set_explicit_instantiation.cc: Move to...
> * testsuite/ext/hash_set/instantiate.cc: ...here.
> * testsuite/ext/hash_check_construct_destroy.cc: Move to...
> * testsuite/ext/hash_set/check_construct_destroy.cc: ...here.
> * testsuite/ext/slist_check_construct_destroy.cc: Move to...
> * testsuite/ext/slist/check_construct_destroy.cc: ...here.
> * testsuite/ext/slist_explicit_instantiation.cc: Move to...
> * testsuite/ext/slist/instantiate.cc: ...here.
This breaks i686-pc-mingw32 bootstrap.
testsuite/testsuite_abi.h includes <ext/hash_map>, and the command line
for testsuite/testsuite_abi.cc specifies "-I.", so GCC incorrectly
attempts to include testsuite/ext/hash_map, which is the new directory,
which obviously won't work.
I'm not sure why this happens on Windows but not on Linux.
Should the hash_map directory just be renamed to something else?
/aaronwl/cs/compilers/gcc/build/mingw-head/gcc/g++ -shared-libgcc
-B/aaronwl/cs/compilers/gcc/build/mingw-head/gcc/ -nostdinc++
-L/aaronwl/cs/compilers/gcc/build/mingw-head/i686-pc-mingw32/libstdc++-v3/src
-L/aaronwl/cs/compilers/gcc/build/mingw-head/i686-pc-mingw32/libstdc++-v3/src/.libs
-B/aaronwl/cs/env/mingw-head-head-head-20041023/i686-pc-mingw32/bin/
-B/aaronwl/cs/env/mingw-head-head-head-20041023/i686-pc-mingw32/lib/
-isystem
/aaronwl/cs/env/mingw-head-head-head-20041023/i686-pc-mingw32/include
-isystem
/aaronwl/cs/env/mingw-head-head-head-20041023/i686-pc-mingw32/sys-include
-DHAVE_CONFIG_H -I.
-I../../../../../src/cvs/head/gcc/libstdc++-v3/testsuite -I..
-I/aaronwl/cs/compilers/gcc/build/mingw-head/i686-pc-mingw32/libstdc++-v3/include/i686-pc-mingw32
-I/aaronwl/cs/compilers/gcc/build/mingw-head/i686-pc-mingw32/libstdc++-v3/include
-I/aaronwl/cs/compilers/gcc/src/cvs/head/gcc/libstdc++-v3/libsupc++ -O2
-g -O2 -g -O2 -D_GLIBCXX_ASSERT -fmessage-length=0
-DLOCALEDIR="/aaronwl/cs/compilers/gcc/build/mingw-head/i686-pc-mingw32/libstdc++-v3/po/share/locale"
-g -O2 -c -o testsuite_abi.o
../../../../../src/cvs/head/gcc/libstdc++-v3/testsuite/testsuite_abi.cc
In file included from
../../../../../src/cvs/head/gcc/libstdc++-v3/testsuite/testsuite_abi.cc:32:
../../../../../src/cvs/head/gcc/libstdc++-v3/testsuite/testsuite_abi.h:35:24:
error:
../../../../../src/cvs/head/gcc/libstdc++-v3/testsuite/ext/hash_map:
Permission denied
../../../../../src/cvs/head/gcc/libstdc++-v3/testsuite/testsuite_abi.h:78:
error: expected initializer before '<' token
../../../../../src/cvs/head/gcc/libstdc++-v3/testsuite/testsuite_abi.h:82:
error: 'symbol_objects' was not declared in this scope
../../../../../src/cvs/head/gcc/libstdc++-v3/testsuite/testsuite_abi.h:82:
error: template argument 2 is invalid
../../../../../src/cvs/head/gcc/libstdc++-v3/testsuite/testsuite_abi.h:82:
error: invalid type in declaration before ';' token
../../../../../src/cvs/head/gcc/libstdc++-v3/testsuite/testsuite_abi.h:121:
error: 'hash' is not a template
../../../../../src/cvs/head/gcc/libstdc++-v3/testsuite/testsuite_abi.h:122:
error: explicit specialization of non-template '__gnu_cxx::hash'
../../../../../src/cvs/head/gcc/libstdc++-v3/testsuite/testsuite_abi.h:
In member function `size_t __gnu_cxx::hash::operator()(const
std::string&) const':
../../../../../src/cvs/head/gcc/libstdc++-v3/testsuite/testsuite_abi.h:125:
error: expected initializer before '<' token
../../../../../src/cvs/head/gcc/libstdc++-v3/testsuite/testsuite_abi.h:126:
error: 'c' was not declared in this scope
../../../../../src/cvs/head/gcc/libstdc++-v3/testsuite/testsuite_abi.cc:
In function `bool check_version(const symbol&, bool)':
../../../../../src/cvs/head/gcc/libstdc++-v3/testsuite/testsuite_abi.cc:156:
error: expected initializer before '<' token
../../../../../src/cvs/head/gcc/libstdc++-v3/testsuite/testsuite_abi.cc:157:
error: 'compat_list' does not name a type
../../../../../src/cvs/head/gcc/libstdc++-v3/testsuite/testsuite_abi.cc:158:
error: 'known_versions' was not declared in this scope
../../../../../src/cvs/head/gcc/libstdc++-v3/testsuite/testsuite_abi.cc:172:
error: `compat_list' has not been declared
../../../../../src/cvs/head/gcc/libstdc++-v3/testsuite/testsuite_abi.cc:172:
error: missing template arguments before "begin"
../../../../../src/cvs/head/gcc/libstdc++-v3/testsuite/testsuite_abi.cc:172:
error: expected `;' before "begin"
../../../../../src/cvs/head/gcc/libstdc++-v3/testsuite/testsuite_abi.cc:173:
error: `compat_list' has not been declared
../../../../../src/cvs/head/gcc/libstdc++-v3/testsuite/testsuite_abi.cc:173:
error: missing template arguments before "end"
../../../../../src/cvs/head/gcc/libstdc++-v3/testsuite/testsuite_abi.cc:173:
error: expected `;' before "end"
../../../../../src/cvs/head/gcc/libstdc++-v3/testsuite/testsuite_abi.cc:176:
error: `compat_list' has not been declared
../../../../../src/cvs/head/gcc/libstdc++-v3/testsuite/testsuite_abi.cc:176:
error: missing template arguments before "it1"
../../../../../src/cvs/head/gcc/libstdc++-v3/testsuite/testsuite_abi.cc:176:
error: expected `;' before "it1"
../../../../../src/cvs/head/gcc/libstdc++-v3/testsuite/testsuite_abi.cc:179:
error: `compat_list' has not been declared
../../../../../src/cvs/head/gcc/libstdc++-v3/testsuite/testsuite_abi.cc:179:
error: missing template arguments before "it2"
../../../../../src/cvs/head/gcc/libstdc++-v3/testsuite/testsuite_abi.cc:179:
error: expected `;' before "it2"
../../../../../src/cvs/head/gcc/libstdc++-v3/testsuite/testsuite_abi.cc:183:
error: 'known_versions' was not declared in this scope
../../../../../src/cvs/head/gcc/libstdc++-v3/testsuite/testsuite_abi.cc:186:
error: 'it1' was not declared in this scope
../../../../../src/cvs/head/gcc/libstdc++-v3/testsuite/testsuite_abi.cc:186:
error: 'end' was not declared in this scope
../../../../../src/cvs/head/gcc/libstdc++-v3/testsuite/testsuite_abi.cc:186:
error: 'it2' was not declared in this scope
../../../../../src/cvs/head/gcc/libstdc++-v3/testsuite/testsuite_abi.cc:
In function `bool has_symbol(const std::string&, const symbols&)':
../../../../../src/cvs/head/gcc/libstdc++-v3/testsuite/testsuite_abi.cc:246:
error: request for member 'first' in 's', which is of non-class type
'const int'
../../../../../src/cvs/head/gcc/libstdc++-v3/testsuite/testsuite_abi.cc:
In function `symbol& get_symbol(const std::string&, const symbols&)':
../../../../../src/cvs/head/gcc/libstdc++-v3/testsuite/testsuite_abi.cc:254:
error: request for member 'first' in 's', which is of non-class type
'const int'
../../../../../src/cvs/head/gcc/libstdc++-v3/testsuite/testsuite_abi.cc:258:
error: 'symbol_objects' was not declared in this scope
../../../../../src/cvs/head/gcc/libstdc++-v3/testsuite/testsuite_abi.cc:258:
error: expected `;' before "objects"
../../../../../src/cvs/head/gcc/libstdc++-v3/testsuite/testsuite_abi.cc:259:
error: 'objects' was not declared in this scope
../../../../../src/cvs/head/gcc/libstdc++-v3/testsuite/testsuite_abi.cc:
In function `void compare_symbols(const char*, const char*, bool)':
../../../../../src/cvs/head/gcc/libstdc++-v3/testsuite/testsuite_abi.cc:289:
error: request for member 'first' in 'baseline', which is of non-class
type 'symbols'
../../../../../src/cvs/head/gcc/libstdc++-v3/testsuite/testsuite_abi.cc:290:
error: 'symbol_objects' was not declared in this scope
../../../../../src/cvs/head/gcc/libstdc++-v3/testsuite/testsuite_abi.cc:290:
error: 'baseline_objects' was not declared in this scope
../../../../../src/cvs/head/gcc/libstdc++-v3/testsuite/testsuite_abi.cc:290:
error: request for member 'second' in 'baseline', which is of non-class
type 'symbols'
../../../../../src/cvs/head/gcc/libstdc++-v3/testsuite/testsuite_abi.cc:291:
error: request for member 'first' in 'test', which is of non-class type
'symbols'
../../../../../src/cvs/head/gcc/libstdc++-v3/testsuite/testsuite_abi.cc:292:
error: 'test_objects' was not declared in this scope
../../../../../src/cvs/head/gcc/libstdc++-v3/testsuite/testsuite_abi.cc:292:
error: request for member 'second' in 'test', which is of non-class type
'symbols'
../../../../../src/cvs/head/gcc/libstdc++-v3/testsuite/testsuite_abi.cc:333:
error: 'vector' was not declared in this scope
../../../../../src/cvs/head/gcc/libstdc++-v3/testsuite/testsuite_abi.cc:333:
error: expected primary-expression before '>' token
../../../../../src/cvs/head/gcc/libstdc++-v3/testsuite/testsuite_abi.cc:333:
error: 'incompatible' was not declared in this scope
../../../../../src/cvs/head/gcc/libstdc++-v3/testsuite/testsuite_abi.cc:
In function `symbols create_symbols(const char*)':
../../../../../src/cvs/head/gcc/libstdc++-v3/testsuite/testsuite_abi.cc:405:
error: request for member 'first' in 's', which is of non-class type
'symbols'
../../../../../src/cvs/head/gcc/libstdc++-v3/testsuite/testsuite_abi.cc:406:
error: 'symbol_objects' was not declared in this scope
../../../../../src/cvs/head/gcc/libstdc++-v3/testsuite/testsuite_abi.cc:406:
error: 'objects' was not declared in this scope
../../../../../src/cvs/head/gcc/libstdc++-v3/testsuite/testsuite_abi.cc:406:
error: request for member 'second' in 's', which is of non-class type
'symbols'
make[4]: *** [testsuite_abi.o] Error 1
Aaron W. LaFramboise