From: Adam Nemet Date: Mon, 12 May 2008 02:07:56 +0000 (+0000) Subject: mips.exp: Move passing -DMIPS16=... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b3aaa29ac40cf49b62efc96db98500cce8491330;p=gcc.git 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 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 50143ff8ed7..ae7e016e3f1 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2008-05-11 Adam Nemet + + * 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 PR fortran/35719 diff --git a/gcc/testsuite/gcc.target/mips/mips.exp b/gcc/testsuite/gcc.target/mips/mips.exp index bd8b5fa78d6..526bbdb14f2 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 150a217ea6c..2d14dde2ad5 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.