Get rid of eclipse fiels once and for all.
Homogenise the references to crosstool-NG:
- the project is named "crosstool-NG"
- the front-end is named "ct-ng"
- don't use shortcuts (such as "ct-ng" to stand for "crosstool-NG")
Default action is to print help.
Don't speak of make rules when dumping help, just speak of actions.
1 See http://gcc.gnu.org/PR12009
3 Fixes the following problems when testing a cross-compiler:
5 ============================================
6 Testing g++.dg/compat/abi/bitfield1,
8 Invoking the compiler as /crosstool-0.12/build/powerpc-750-linux-gnu/gcc-3.3-gli
9 bc-2.2.5/build-gcc/gcc/testsuite/../g++ ...
10 /crosstool-0.12/build/powerpc-750-linux-gnu/gcc-3.3-glibc-2.2.5/gcc-3.3/gcc/test
11 suite/g++.dg/compat/abi/bitfield1_main.C
13 compiler exited with status 1
15 sh: error while loading shared libraries: /opt/cegl-2.0/powerpc-750-linux-gnu/gc
16 c-3.3-glibc-2.2.5/powerpc-750-linux-gnu/./lib/libdl.so.2: ELF file data encoding
18 /crosstool-0.12/build/powerpc-750-linux-gnu/gcc-3.3-glibc-2.2.5/build-gcc/gcc/te
19 stsuite/../g++: error while loading shared libraries: /opt/cegl-2.0/powerpc-750-
20 linux-gnu/gcc-3.3-glibc-2.2.5/powerpc-750-linux-gnu/./lib/libc.so.6: ELF file da
21 ta encoding not little-endian
23 FAIL: g++.dg/compat/abi/bitfield1 main_tst.o compile
24 ============================================
28 sh: error while loading shared libraries: /opt/cegl-2.0/powerpc-405-linux-gnu/gcc-3.2.3-glibc-2.2.5/powerpc-405-linux-gnu/./lib/libdl.so.2: ELF file data encoding not little-endian
32 --- gcc-3.3/gcc/testsuite/g++.dg/compat/compat.exp.old Thu Oct 17 17:22:57 2002
33 +++ gcc-3.3/gcc/testsuite/g++.dg/compat/compat.exp Mon Jul 14 10:59:19 2003
35 proc compat-fix-library-path { } {
36 global ld_library_path
38 - # See comments in lib/g++.exp for why this is needed.
39 - setenv LD_LIBRARY_PATH $ld_library_path
40 - setenv SHLIB_PATH $ld_library_path
41 - setenv LD_LIBRARYN32_PATH $ld_library_path
42 - setenv LD_LIBRARY64_PATH $ld_library_path
43 + if {![is_remote target]} {
44 + # See comments in lib/g++.exp for why this is needed.
45 + setenv LD_LIBRARY_PATH $ld_library_path
46 + setenv SHLIB_PATH $ld_library_path
47 + setenv LD_LIBRARYN32_PATH $ld_library_path
48 + setenv LD_LIBRARY64_PATH $ld_library_path
53 --- gcc-3.4-20030813/gcc/testsuite/lib/g++.exp.orig Tue Jun 17 18:56:45 2003
54 +++ gcc-3.4-20030813/gcc/testsuite/lib/g++.exp Sun Aug 17 18:35:38 2003
59 - # On IRIX 6, we have to set variables akin to LD_LIBRARY_PATH, but
60 - # called LD_LIBRARYN32_PATH (for the N32 ABI) and LD_LIBRARY64_PATH
61 - # (for the 64-bit ABI). The right way to do this would be to modify
62 - # unix.exp -- but that's not an option since it's part of DejaGNU
63 - # proper, so we do it here. We really only need to do
64 - # this on IRIX, but it shouldn't hurt to do it anywhere else.
65 - setenv LD_LIBRARY_PATH $ld_library_path
66 - setenv SHLIB_PATH $ld_library_path
67 - setenv LD_LIBRARYN32_PATH $ld_library_path
68 - setenv LD_LIBRARY64_PATH $ld_library_path
69 + if {![is_remote target]} {
70 + # On IRIX 6, we have to set variables akin to LD_LIBRARY_PATH, but
71 + # called LD_LIBRARYN32_PATH (for the N32 ABI) and LD_LIBRARY64_PATH
72 + # (for the 64-bit ABI). The right way to do this would be to modify
73 + # unix.exp -- but that's not an option since it's part of DejaGNU
74 + # proper, so we do it here. We really only need to do
75 + # this on IRIX, but it shouldn't hurt to do it anywhere else.
77 + # Doing this causes us to be unable to run cross-compilers.
78 + setenv LD_LIBRARY_PATH $ld_library_path
79 + setenv SHLIB_PATH $ld_library_path
80 + setenv LD_LIBRARYN32_PATH $ld_library_path
81 + setenv LD_LIBRARY64_PATH $ld_library_path