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:
parent
9c1180b7ca
commit
b3aaa29ac4
@ -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
|
||||
|
@ -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
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user