Commit b824522a by Nathan Froyd Committed by Nathan Froyd

* lib/target-supports.exp

	(check_effective_target_mips_newabi_large_long_double): New.
	* gcc.target/mips/fpr-moves-5.c: Require mips_newabi_large_long_double
	target.
	* gcc.target/mips/fpr-moves-6.c: Likewise.

From-SVN: r149286
parent 4fd263a6
2009-07-06 Nathan Froyd <froydnj@codesourcery.com>
* lib/target-supports.exp
(check_effective_target_mips_newabi_large_long_double): New.
* gcc.target/mips/fpr-moves-5.c: Require mips_newabi_large_long_double
target.
* gcc.target/mips/fpr-moves-6.c: Likewise.
2009-07-06 Simon Martin <simartin@users.sourceforge.net> 2009-07-06 Simon Martin <simartin@users.sourceforge.net>
PR c++/40557 PR c++/40557
......
/* { dg-options "-mabi=64 -mhard-float -O2 -EL" } */ /* { dg-options "-mabi=64 -mhard-float -O2 -EL" } */
/* { dg-require-effective-target mips_newabi_large_long_double } */
NOMIPS16 void NOMIPS16 void
foo (long double d, long double *x) foo (long double d, long double *x)
......
/* { dg-options "-mabi=64 -mhard-float -O2 -EB" } */ /* { dg-options "-mabi=64 -mhard-float -O2 -EB" } */
/* { dg-require-effective-target mips_newabi_large_long_double } */
NOMIPS16 void NOMIPS16 void
foo (long double d, long double *x) foo (long double d, long double *x)
......
...@@ -734,6 +734,15 @@ proc check_effective_target_mips16_attribute { } { ...@@ -734,6 +734,15 @@ proc check_effective_target_mips16_attribute { } {
} [add_options_for_mips16_attribute ""]] } [add_options_for_mips16_attribute ""]]
} }
# Return 1 if the target supports long double larger than double when
# using the new ABI, 0 otherwise.
proc check_effective_target_mips_newabi_large_long_double { } {
return [check_no_compiler_messages mips_newabi_large_long_double object {
int dummy[sizeof(long double) > sizeof(double) ? 1 : -1];
} "-mabi=64"]
}
# Return 1 if the current multilib does not generate PIC by default. # Return 1 if the current multilib does not generate PIC by default.
proc check_effective_target_nonpic { } { proc check_effective_target_nonpic { } {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment