* 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
+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
-- { dg-do run { target i?86-*-* x86_64-*-* } }
-- { dg-options "-O1 -msse" }
+-- { dg-require-effective-target sse_runtime }
with Ada.Unchecked_Conversion;
load_lib libgloss.exp
load_lib prune.exp
load_lib gcc-defs.exp
+load_lib gcc.exp
load_lib timeout.exp
#
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]" } {