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]

[PATCH] Dejagnu needs more information to build testglue.


The testsuite testglue is built by Dejagnu without help from the
compiler. The testglue needs start files that come from the configured
prefix.  To fix this we export GCC_EXEC_PREFIX before running
$(RUNTEST).

The GCC testsuite already knows how to coordinate GCC_EXEC_PREFIX with
the compiler, so it doesn't have a problem.

Tested without regressions and bootstrapped on x86_64-unknown-linux-gnu,
and arm-none-eabi. This fixes the arm-none-eabi failures seen when
compiling the testglue during "in-tree" testing.

Cheers,
Carlos.
-- 
Carlos O'Donell
CodeSourcery
carlos@codesourcery.com
(650) 331-3385 x716

Index: gcc/ChangeLog
===================================================================
--- gcc/ChangeLog	(revision 120099)
+++ gcc/ChangeLog	(working copy)
@@ -1,3 +1,8 @@
+2006-12-20  Carlos O'Donell  <carlos@codesourcery.com>
+
+	* Makefile.in: Export GCC_EXEC_PREFIX before calling $(RUNTEST)
+	in $(lang_checks) and check-consistency targets.
+
 2006-12-20  Jan Hubicka  <jh@suse.cz>
 
 	* tree-dfa.c (add_referenced_var): Walk initializers of
Index: gcc/Makefile.in
===================================================================
--- gcc/Makefile.in	(revision 120099)
+++ gcc/Makefile.in	(working copy)
@@ -4082,6 +4082,7 @@ $(lang_checks): check-% : site.exp
 	if [ -f $${rootme}/../expect/expect ] ; then  \
 	   TCL_LIBRARY=`cd .. ; cd $${srcdir}/../tcl/library ; ${PWD_COMMAND}` ; \
 	    export TCL_LIBRARY ; fi ; \
+	GCC_EXEC_PREFIX="$(libdir)/gcc/" ; export GCC_EXEC_PREFIX ; \
 	$(RUNTEST) --tool $* $(RUNTESTFLAGS))
 
 check-consistency: testsuite/site.exp
@@ -4092,6 +4093,7 @@ check-consistency: testsuite/site.exp
 	if [ -f $${rootme}/../expect/expect ] ; then  \
 	   TCL_LIBRARY=`cd .. ; cd $${srcdir}/../tcl/library ; ${PWD_COMMAND}` ; \
 	   export TCL_LIBRARY ; fi ; \
+	GCC_EXEC_PREFIX="$(libdir)/gcc/" ; export GCC_EXEC_PREFIX ; \
 	$(RUNTEST) --tool consistency $(RUNTESTFLAGS)
 
 # QMTest targets


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