This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[committed] Fix treelang.exp


 Hi,

  This patch fixes the comments in treelang.exp to refer to gcc where
appropriate and removes any libs appended to options as treelang doesn't have
any standard library.  I needed this patch, well the the libs part, to run
the treelang execution tests on sparc-linux and powerpc-linux.

--
Thanks,
Jim

http://www.student.cs.uwaterloo.ca/~ja2morri/
http://phython.blogspot.com
http://open.nit.ca/wiki/?page=jim

2005-02-01  James A. Morrison  <phython@gcc.gnu.org>

	* lib/treelang.exp: Fix comment typos.
	(treelang_target_compile): Don't append libs=-ltreelang to options.

Index: lib/treelang.exp
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/testsuite/lib/treelang.exp,v
retrieving revision 1.7
diff -u -p -r1.7 treelang.exp
--- lib/treelang.exp	24 Nov 2004 04:39:31 -0000	1.7
+++ lib/treelang.exp	1 Feb 2005 14:57:25 -0000
@@ -21,14 +21,15 @@
 # Having this file here magically tells dejagnu that the treelang
 # directory is worthy of testing
 
-# This file is basically treelang.exp with treelang replaced with treelang.
+# This file is basically gcc.exp with gcc replaced with treelang.
 
 # This file is loaded by the tool init file (eg: unix.exp).  It provides
-# default definitions for treelang_start, etc. and other supporting cast members.
+# default definitions for treelang_start, etc. and other supporting cast
+# members.
 
-# These globals are used by treelang_start if no compiler arguments are provided.
-# They are also used by the various testsuites to define the environment:
-# where to find stdio.h, libc.a, etc.
+# These globals are used by treelang_start if no compiler arguments are
+# provided.  They are also used by the various testsuites to define the
+# environment: where to find stdio.h, libc.a, etc.
 
 load_lib libgloss.exp
 load_lib prune.exp
@@ -143,7 +144,6 @@ proc treelang_target_compile { source de
 
     set ld_library_path ".:${treelang_libgcc_s_path}"
     set_ld_library_path_env_vars
-    lappend options "libs=-ltreelang"
 
     if { [target_info needs_status_wrapper]!="" && [info exists gluefile] } {
 	lappend options "libs=${gluefile}"


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]