mips.exp: Move passing -DMIPS16=...
authorAdam Nemet <anemet@caviumnetworks.com>
Mon, 12 May 2008 02:07:56 +0000 (02:07 +0000)
committerAdam Nemet <nemet@gcc.gnu.org>
Mon, 12 May 2008 02:07:56 +0000 (02:07 +0000)
* gcc.target/mips/mips.exp: Move passing -DMIPS16=... from here ...
* lib/target-supports.exp (add_options_for_mips16_attribute):
... to here.

From-SVN: r135202

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

index 50143ff8ed753f1ae70e512d610ade2502730a62..ae7e016e3f1351a419f49878e761fb100ea58413 100644 (file)
@@ -1,3 +1,9 @@
+2008-05-11  Adam Nemet  <anemet@caviumnetworks.com>
+
+       * gcc.target/mips/mips.exp: Move passing -DMIPS16=... from here ...
+       * lib/target-supports.exp (add_options_for_mips16_attribute):
+       ... to here.
+
 2008-05-11  Thomas Koenig  <tkoenig@gcc.gnu.org>
 
        PR fortran/35719
index bd8b5fa78d6068df19c5b940924d411961f47b12..526bbdb14f22013b750010b44eaccb7692fe46a4 100644 (file)
@@ -373,6 +373,7 @@ proc dg-mips-options {args} {
 setup_mips_tests
 
 dg-init
+# MIPS16 is defined in add_options_for_mips16_attribute.
 dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.c]] "" \
-    "-DMIPS16=__attribute__((mips16)) -DNOMIPS16=__attribute__((nomips16))"
+    "-DNOMIPS16=__attribute__((nomips16))"
 dg-finish
index 150a217ea6cb5e3824da98356034e81e60dfab9a..2d14dde2ad5a4bc5f1fcfdf7ccf23298717c4480 100644 (file)
@@ -650,7 +650,7 @@ proc check_effective_target_nomips16 { } {
 # we don't support MIPS16 PIC.
 
 proc add_options_for_mips16_attribute { flags } {
-    return "$flags -mno-abicalls -fno-pic"
+    return "$flags -mno-abicalls -fno-pic -DMIPS16=__attribute__((mips16))"
 }
 
 # Return true if we can force a mode that allows MIPS16 code generation.