diff options
author | Adam Nemet <anemet@caviumnetworks.com> | 2008-05-12 02:07:56 +0000 |
---|---|---|
committer | Adam Nemet <nemet@gcc.gnu.org> | 2008-05-12 02:07:56 +0000 |
commit | b3aaa29ac40cf49b62efc96db98500cce8491330 (patch) | |
tree | 887e39837b5cc78dbb07c0e442a562eb7ddc5f39 /gcc | |
parent | 9c1180b7ca2e66fedd781be33a6569e2179ce167 (diff) | |
download | gcc-b3aaa29ac40cf49b62efc96db98500cce8491330.zip gcc-b3aaa29ac40cf49b62efc96db98500cce8491330.tar.gz gcc-b3aaa29ac40cf49b62efc96db98500cce8491330.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/mips/mips.exp | 3 | ||||
-rw-r--r-- | gcc/testsuite/lib/target-supports.exp | 2 |
3 files changed, 9 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 50143ff..ae7e016 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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 diff --git a/gcc/testsuite/gcc.target/mips/mips.exp b/gcc/testsuite/gcc.target/mips/mips.exp index bd8b5fa..526bbdb 100644 --- a/gcc/testsuite/gcc.target/mips/mips.exp +++ b/gcc/testsuite/gcc.target/mips/mips.exp @@ -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 diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 150a217..2d14dde 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -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. |