From a20e0a22edd3ad8a2fa915847767775e0b11e365 Mon Sep 17 00:00:00 2001 From: ro Date: Fri, 26 Nov 2010 17:36:42 +0000 Subject: [PATCH] * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167185 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/gnat.dg/sse_nolib.adb | 1 + gcc/testsuite/lib/gnat.exp | 6 ++++++ 3 files changed, 13 insertions(+) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 80706c0..bc402c4 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2010-11-26 Rainer Orth + + * 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 PR lto/46648 diff --git a/gcc/testsuite/gnat.dg/sse_nolib.adb b/gcc/testsuite/gnat.dg/sse_nolib.adb index a6b7893..a0aa720 100644 --- a/gcc/testsuite/gnat.dg/sse_nolib.adb +++ b/gcc/testsuite/gnat.dg/sse_nolib.adb @@ -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; diff --git a/gcc/testsuite/lib/gnat.exp b/gcc/testsuite/lib/gnat.exp index 90db485..79fb3e6 100644 --- a/gcc/testsuite/lib/gnat.exp +++ b/gcc/testsuite/lib/gnat.exp @@ -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]" } { -- 2.7.4