sourcebuild.texi: Document long_neq_int effective target.

gcc:

2012-08-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

	* doc/sourcebuild.texi: Document long_neq_int effective target.


testsuite:

2012-08-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

	* lib/target-supports.exp (check_effective_target_long_neq_int): New.
	* gcc.dg/tree-ssa/slsr-30.c: Check for long_neq_int effective target.

From-SVN: r190293
This commit is contained in:
Bill Schmidt 2012-08-10 12:11:29 +00:00 committed by William Schmidt
parent ab509eb535
commit 75bc384117
5 changed files with 22 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2012-08-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
* doc/sourcebuild.texi: Document long_neq_int effective target.
2012-08-10 Richard Guenther <rguenther@suse.de>
PR tree-optimization/54109

View File

@ -1303,6 +1303,9 @@ Target has @code{int} that is at 32 bits or longer.
@item int16
Target has @code{int} that is 16 bits or shorter.
@item long_neq_int
Target has @code{int} and @code{long} with different sizes.
@item large_double
Target supports @code{double} that is longer than @code{float}.

View File

@ -1,3 +1,8 @@
2012-08-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
* lib/target-supports.exp (check_effective_target_long_neq_int): New.
* gcc.dg/tree-ssa/slsr-30.c: Check for long_neq_int effective target.
2012-08-10 Richard Guenther <rguenther@suse.de>
PR tree-optimization/54109

View File

@ -1,7 +1,7 @@
/* Verify straight-line strength reduction fails for simple integer addition
with casts thrown in when -fwrapv is used. */
/* { dg-do compile { target { ! { ilp32 } } } } */
/* { dg-do compile { target { long_neq_int } } } */
/* { dg-options "-O3 -fdump-tree-dom2 -fwrapv" } */
long

View File

@ -1689,6 +1689,15 @@ proc check_effective_target_llp64 { } {
}]
}
# Return 1 if long and int have different sizes,
# 0 otherwise.
proc check_effective_target_long_neq_int { } {
return [check_no_compiler_messages long_ne_int object {
int dummy[sizeof (int) != sizeof (long) ? 1 : -1];
}]
}
# Return 1 if the target supports long double larger than double,
# 0 otherwise.