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]

Fix gnat.dg testsuite glitch


Some files may not be recompiled between 2 consecutive runs, which defeats a 
little the purpose of the testsuite.  It's the symptom of a more general 
problem with the testsuite and I'll open a PR for it.  In the meantime...

Tested on i586-suse-linux, applied to mainline and 4.2 branch.


2007-02-18  Eric Botcazou  <ebotcazou@adacore.com>

	* gnat.dg/test_prio_p.adb: Compile with -gnatws.
	* lib/gnat.exp (gnat_target_compile): Pass -f to the driver.

-- 
Eric Botcazou
Index: lib/gnat.exp
===================================================================
--- lib/gnat.exp	(revision 122038)
+++ lib/gnat.exp	(working copy)
@@ -129,7 +129,7 @@ proc gnat_target_compile { source dest t
 
     setenv ADA_INCLUDE_PATH "${rootme}/ada/rts"
     set ld_library_path ".:${gnat_libgcc_s_path}"
-    lappend options "compiler=$GNAT_UNDER_TEST -q"
+    lappend options "compiler=$GNAT_UNDER_TEST -q -f"
     lappend options "incdir=${rootme}/ada/rts"
 
     if { [target_info needs_status_wrapper]!="" && [info exists gluefile] } {
Index: gnat.dg/test_prio_p.adb
===================================================================
--- gnat.dg/test_prio_p.adb	(revision 122038)
+++ gnat.dg/test_prio_p.adb	(working copy)
@@ -1,3 +1,5 @@
+-- { dg-options "-gnatws" }
+
 package body test_prio_p is
    protected body Protected_Queue_T is
       entry Seize when True is begin null; end;

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