diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/sh/sh.exp')
-rw-r--r-- | gcc/testsuite/gcc.target/sh/sh.exp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.target/sh/sh.exp b/gcc/testsuite/gcc.target/sh/sh.exp index ac428cde5b3..ff3048fa4e9 100644 --- a/gcc/testsuite/gcc.target/sh/sh.exp +++ b/gcc/testsuite/gcc.target/sh/sh.exp @@ -1,4 +1,4 @@ -# Copyright (C) 2007-2014 Free Software Foundation, Inc. +# Copyright (C) 2007-2015 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -24,6 +24,15 @@ if ![istarget sh*-*-*] then { # Load support procs. load_lib gcc-dg.exp +# Return 1 if target is SH2A +proc check_effective_target_sh2a { } { + return [check_no_compiler_messages sh2a object { + #ifndef __SH2A__ + #error "" + #endif + } ""] +} + # If a testcase doesn't have special options, use these. global DEFAULT_CFLAGS if ![info exists DEFAULT_CFLAGS] then { |