target-supports.exp (check_effective_target_tiny): Return 1 for AVR_TINY.
authorGeorg-Johann Lay <avr@gjlay.de>
Mon, 21 Nov 2016 15:38:02 +0000 (15:38 +0000)
committerGeorg-Johann Lay <gjl@gcc.gnu.org>
Mon, 21 Nov 2016 15:38:02 +0000 (15:38 +0000)
gcc/testsuite/
* lib/target-supports.exp (check_effective_target_tiny) [avr]:
Return 1 for AVR_TINY.

From-SVN: r242666

gcc/testsuite/ChangeLog
gcc/testsuite/lib/target-supports.exp

index 3f827378697c6192ae4c4b8e7ddaceadf76a18e7..a6a5c168526892f9931280464d47e3cb576430e6 100644 (file)
@@ -1,3 +1,8 @@
+2016-11-21  Georg-Johann Lay  <avr@gjlay.de>
+
+       * lib/target-supports.exp (check_effective_target_tiny) [avr]:
+       Return 1 for AVR_TINY.
+
 2016-11-21  Segher Boessenkool  <segher@kernel.crashing.org>
 
        PR rtl-optimization/71785
index 8a2abd2c4cc441b4fc5d469f74b8535aaf864b3a..201bbf393d0f1c1cf54e69e9a730ecaaa85bc59d 100644 (file)
@@ -7864,7 +7864,7 @@ proc check_effective_target_fenv_exceptions {} {
 proc check_effective_target_tiny {} {
     global et_target_tiny_saved
 
-    if [info exists et_target_tine_saved] {
+    if [info exists et_target_tiny_saved] {
       verbose "check_effective_target_tiny: using cached result" 2
     } else {
        set et_target_tiny_saved 0
@@ -7872,6 +7872,10 @@ proc check_effective_target_tiny {} {
              && [check_effective_target_aarch64_tiny] } {
          set et_target_tiny_saved 1
        }
+       if { [istarget avr-*-*]
+             && [check_effective_target_avr_tiny] } {
+         set et_target_tiny_saved 1
+       }
     }
 
     return $et_target_tiny_saved