gnat.exp: Load gcc.exp.
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Fri, 26 Nov 2010 17:36:42 +0000 (17:36 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Fri, 26 Nov 2010 17:36:42 +0000 (17:36 +0000)
* lib/gnat.exp: Load gcc.exp.
(gnat_target_compile): Use gcc_target_compile for *.c sources.
* gnat.dg/sse_nolib.adb: Use dg-require-effective-target sse_runtime.

From-SVN: r167185

gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/sse_nolib.adb
gcc/testsuite/lib/gnat.exp

index 80706c08d1dd8629ef7f633750cc686b26887743..bc402c4453f1ec2c86c880672f446f0d15c67c5f 100644 (file)
@@ -1,3 +1,9 @@
+2010-11-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       * lib/gnat.exp: Load gcc.exp.
+       (gnat_target_compile): Use gcc_target_compile for *.c sources.
+       * gnat.dg/sse_nolib.adb: Use dg-require-effective-target sse_runtime.
+
 2010-11-26  Richard Guenther  <rguenther@suse.de>
 
        PR lto/46648
index a6b78934abef79fb05dba560f3afe99aa04af388..a0aa720f0648ac499c88203e0fbc47b4dbdb41b9 100644 (file)
@@ -1,5 +1,6 @@
 --  { dg-do run { target i?86-*-* x86_64-*-* } }
 --  { dg-options "-O1 -msse" }
+--  { dg-require-effective-target sse_runtime } 
 
 with Ada.Unchecked_Conversion;
 
index 90db48551822b88499959c587d6b630f55cc1ac0..79fb3e6064dec181b1b5004d097aa32033e702cc 100644 (file)
@@ -27,6 +27,7 @@
 load_lib libgloss.exp
 load_lib prune.exp
 load_lib gcc-defs.exp
+load_lib gcc.exp
 load_lib timeout.exp
 
 #
@@ -132,6 +133,11 @@ proc gnat_target_compile { source dest type options } {
     global gnat_libgcc_s_path
     global gnat_target_current
 
+    # dg-require-effective-target tests must be compiled as C.
+    if [ string match "*.c" $source ] then {
+       return [gcc_target_compile $source $dest $type $options]
+    }
+
     # If we detect a change of target, we need to recompute both
     # GNAT_UNDER_TEST and the appropriate RTS.
     if { $gnat_target_current!="[current_target_name]" } {