This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: PR testsuite/40707: [4.5 regression] Testsuite no longer works with emulator
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 10 Jul 2009 09:12:45 -0700
- Subject: PATCH: PR testsuite/40707: [4.5 regression] Testsuite no longer works with emulator
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
Revision 149113:
http://gcc.gnu.org/ml/gcc-cvs/2009-06/msg01099.html
broke testsuite with my emulator. I can run AVX binary
under my AVX emulator, which is based on "sim", directly.
To do that, I set up LD_LIBRARY_PATH properly my sim_load,
according to ld_library_path. Revision 149113 removed
ld_library_path support and instead depended on
set_ld_library_path_env_vars, which has
# Setting the ld library path causes trouble when testing
# cross-compilers.
if { [is_remote target] } {
return
}
This patch uses isnative instead of is_remote to check cross compiler.
OK for trunk?
Thanks.
H.J.
---
2009-07-10 H.J. Lu <hongjiu.lu@intel.com>
PR testsuite/40707
* lib/target-libpath.exp (set_ld_library_path_env_vars): Use
isnative to check cross-compiler.
--- gcc/testsuite/lib/target-libpath.exp.pr40707 2009-07-09 19:51:53.000000000 -0700
+++ gcc/testsuite/lib/target-libpath.exp 2009-07-10 09:05:22.000000000 -0700
@@ -85,7 +85,7 @@ proc set_ld_library_path_env_vars { } {
}
# Setting the ld library path causes trouble when testing cross-compilers.
- if { [is_remote target] } {
+ if { ![isnative] } {
return
}