* gcc.target/mips/mips.exp: Move passing -DMIPS16=... from here ...
* lib/target-supports.exp (add_options_for_mips16_attribute):
... to here.
From-SVN: r135202
+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
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
# 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.