From: drow Date: Wed, 15 Aug 2007 17:44:51 +0000 (+0000) Subject: * lib/target-supports.exp (check_effective_target_arm32): Use X-Git-Tag: upstream/4.9.2~46885 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=35f198f29a447426e88b333100b4d861f8d2cbf9;p=platform%2Fupstream%2Flinaro-gcc.git * lib/target-supports.exp (check_effective_target_arm32): Use check_no_compiler_messages. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127522 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 5515a9c..5126a69 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2007-08-15 Daniel Jacobowitz + + * lib/target-supports.exp (check_effective_target_arm32): Use + check_no_compiler_messages. + 2007-08-15 Diego Novillo gcc.dg/tree-ssa/20070815.c: New test. diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 373f480..c48138d 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -1413,39 +1413,11 @@ proc check_effective_target_vect_floatint_cvt { } { # Return 1 is this is an arm target using 32-bit instructions proc check_effective_target_arm32 { } { - global et_arm32_saved - global et_arm32_target_name - global compiler_flags - - if { ![info exists et_arm32_target_name] } { - set et_arm32_target_name "" - } - - # If the target has changed since we set the cached value, clear it. - set current_target [current_target_name] - if { $current_target != $et_arm32_target_name } { - verbose "check_effective_target_arm32: `$et_arm32_target_name' `$current_target'" 2 - set et_arm32_target_name $current_target - if { [info exists et_arm32_saved] } { - verbose "check_effective_target_arm32: removing cached result" 2 - unset et_arm32_saved - } - } - - if [info exists et_arm32_saved] { - verbose "check-effective_target_arm32: using cached result" 2 - } else { - set et_arm32_saved 0 - if { [istarget arm-*-*] - || [istarget strongarm*-*-*] - || [istarget xscale-*-*] } { - if ![string match "*-mthumb *" $compiler_flags] { - set et_arm32_saved 1 - } - } - } - verbose "check_effective_target_arm32: returning $et_arm32_saved" 2 - return $et_arm32_saved + return [check_no_compiler_messages arm32 assembly { + #if !defined(__arm__) || (defined(__thumb__) && !defined(__thumb2__)) + #error FOO + #endif + }] } # Return 1 if this is an ARM target supporting -mfpu=vfp