target-supports.exp (check_effective_target_arm_thumb1_ok): New.
authorJoseph Myers <joseph@codesourcery.com>
Fri, 25 Jul 2008 15:49:36 +0000 (16:49 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Fri, 25 Jul 2008 15:49:36 +0000 (16:49 +0100)
* lib/target-supports.exp (check_effective_target_arm_thumb1_ok):
New.
* g++.dg/inherit/thunk8.C: Use it.

From-SVN: r138143

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/inherit/thunk8.C
gcc/testsuite/lib/target-supports.exp

index 020502ce3a5163f0fd76168437228133ceea2b27..85ac795ca91eeb5965d78837c7191339adfc8bdb 100644 (file)
@@ -1,3 +1,9 @@
+2008-07-25  Joseph Myers  <joseph@codesourcery.com>
+
+       * lib/target-supports.exp (check_effective_target_arm_thumb1_ok):
+       New.
+       * g++.dg/inherit/thunk8.C: Use it.
+
 2008-07-24  Jan Hubicka  <jh@suse.cz>
 
        * gcc.dg/winline-4.c: Remove.
index f7761349f8e3bb27c1ce94aa111197d3aa069d5e..ef645356898dae2080c88841208b285efbc55c94 100644 (file)
@@ -3,7 +3,7 @@
    Make sure that won't happen anymore.  */
 
 /* { dg-do compile } */
-/* { dg-require-effective-target arm32 } */
+/* { dg-require-effective-target arm_thumb1_ok } */
 /* { dg-options "-mthumb -fPIC" } */
 
 struct A {
index 66231c669b0d812d907fde360ef43d84ee8d91e4..5f426669265d3bf8726cef958f5aa06915d04aa9 100644 (file)
@@ -1249,6 +1249,17 @@ proc check_effective_target_arm_neon_ok { } {
     }
 }
 
+# Return 1 is this is an ARM target where -mthumb causes Thumb-1 to be
+# used.
+
+proc check_effective_target_arm_thumb1_ok { } {
+    return [check_no_compiler_messages arm_thumb1_ok assembly {
+       #if !defined(__arm__) || !defined(__thumb__) || defined(__thumb2__)
+       #error FOO
+       #endif
+    } "-mthumb"]
+}
+
 # Return 1 if the target supports executing NEON instructions, 0
 # otherwise.  Cache the result.