mips.exp: Move passing -DMIPS16=...

* gcc.target/mips/mips.exp: Move passing -DMIPS16=... from here ...
	* lib/target-supports.exp (add_options_for_mips16_attribute):
	... to here.

From-SVN: r135202
This commit is contained in:
Adam Nemet 2008-05-12 02:07:56 +00:00 committed by Adam Nemet
parent 9c1180b7ca
commit b3aaa29ac4
3 changed files with 9 additions and 2 deletions

View 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

View 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

View 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.